Skip to content

Commit 4d691dc

Browse files
update
Minor fixes for recent changes.
1 parent 4ce6c50 commit 4d691dc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

com.unity.netcode.gameobjects/Runtime/Components/RigidbodyContactEventManager.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ private void OnEnable()
119119
public void RegisterHandler(IContactEventHandler contactEventHandler, bool register = true)
120120
{
121121
var rigidbody = contactEventHandler.GetRigidbody();
122+
if (rigidbody == null)
123+
{
124+
return;
125+
}
122126
var instanceId = rigidbody.GetInstanceID();
123127
if (register)
124128
{

com.unity.netcode.gameobjects/Tests/Runtime/TransformInterpolationTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ protected override void OnInitialize(ref NetworkTransformState replicatedState)
4343
m_LocalSpaceToggles = 0;
4444
m_FrameRateFractional = 1.0f / Application.targetFrameRate;
4545
PositionThreshold = MinThreshold;
46-
SetMaxInterpolationBound(1.0f);
4746
base.OnInitialize(ref replicatedState);
4847
}
4948

0 commit comments

Comments
 (0)