You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assert.False(s_GlobalTimeoutHelper.TimedOut,$"Timed out waiting for {networkManagerNonOwner.name}'s object instance {nonOwnerInstance.name} to change its transform!\n"+
// The last check is to verify non-owners cannot change transform values after ownership has changed
335
338
nonOwnerInstance.transform.position=Vector3.zero;
336
339
yieldreturns_DefaultWaitForTick;
340
+
// Allow scale to update first when using rigid body motion
341
+
if(m_MotionModel==MotionModels.UseRigidbody)
342
+
{
343
+
yieldreturnnewWaitForFixedUpdate();
344
+
}
337
345
Assert.True(Approximately(GetNonOwnerPosition(),valueSetByOwner),$"{networkManagerNonOwner.name}'s object instance {nonOwnerInstance.name} was allowed to change its position! Expected: {valueSetByOwner} Is Currently:{GetNonOwnerPosition()}");
338
346
}
339
347
@@ -366,6 +374,12 @@ public IEnumerator ServerAuthoritativeTest()
366
374
eulerAngles=valueSetByOwner
367
375
};
368
376
ownerInstance.transform.rotation=rotation;
377
+
378
+
// Allow scale to update first when using rigid body motion
Assert.False(s_GlobalTimeoutHelper.TimedOut,$"Timed out waiting for {m_ClientNetworkManagers[0].name}'s object instance {nonOwnerInstance.name} to change its transform!\n"+
0 commit comments