Skip to content

Commit 9354bec

Browse files
added missing patch for position less controller for objectmanipulator
1 parent ddfeb55 commit 9354bec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Assets/MixedRealityToolkit.Tests/PlayModeTests/Experimental/ObjectManipulatorTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,10 @@ public IEnumerator ObjectManipulatorPositionlessController()
898898
Assert.AreEqual(expectedDist, Vector3.Distance(testObject.transform.position, CameraCache.Main.transform.position), 0.02f);
899899

900900
yield return hand.SetGesture(ArticulatedHandPose.GestureId.Pinch);
901+
902+
// Apply correction delta again as we have changed hand pose
903+
correction = CameraCache.Main.transform.position - hand.GetPointer<GGVPointer>().Position;
904+
yield return hand.Move(correction, numHandSteps);
901905
yield return null;
902906

903907
Assert.AreEqual(expectedDist, Vector3.Distance(testObject.transform.position, CameraCache.Main.transform.position), 0.02f);

0 commit comments

Comments
 (0)