From 7498e4617a648681f1d631253e0be57b8031fbe8 Mon Sep 17 00:00:00 2001 From: Kevin Ring Date: Wed, 21 Feb 2024 10:12:34 +1100 Subject: [PATCH] Fix test failure by yielding null instead of WaitForEndOfFrame. --- Tests/TestCesiumOriginShift.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tests/TestCesiumOriginShift.cs b/Tests/TestCesiumOriginShift.cs index 36934393..114b4646 100644 --- a/Tests/TestCesiumOriginShift.cs +++ b/Tests/TestCesiumOriginShift.cs @@ -162,7 +162,7 @@ public IEnumerator ShiftsOriginWithCharacterController() controller.center = Vector3.zero; controller.enableOverlapRecovery = false; - yield return new WaitForEndOfFrame(); + yield return null; IEqualityComparer epsilon6 = Comparers.Double(1e-6, 1e-4); @@ -189,6 +189,7 @@ public IEnumerator ShiftsOriginWithCharacterController() previousPositionEcef = globeAnchor.positionGlobeFixed.x; movement = georeference.TransformEarthCenteredEarthFixedDirectionToUnity(new double3(3000.0, 0, 0)); controller.Move((float3)movement); + globeAnchor.Sync(); yield return null;