TestHand.MoveTo(Vector3, Int32, Boolean) Method

Definition

Move controller to given position over some number of frames

C#
public override System.Collections.IEnumerator MoveTo (UnityEngine.Vector3 newPosition, int numSteps = -1, bool waitForFixedUpdate = true);

Parameters

newPosition
UnityEngine.Vector3

Where to move controller to

numSteps
Int32

How many frames to move over. This defaults to the "sentinel" value which tells the system to use the default number of steps. For more information on this value, see Microsoft.MixedReality.Toolkit.Tests.PlayModeTestUtilities.ControllerMoveStepsSentinelValue

waitForFixedUpdate
Boolean

If true, waits a physics frame after moving the controller

Returns

Applies to

Producto Versiones
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0