Edit

Share via


TestMotionController.MoveTo(Vector3, Int32, Boolean) Method

Definition

Move controller to given position over some number of frames

public override System.Collections.IEnumerator MoveTo (UnityEngine.Vector3 newPosition, int numSteps = -1, bool waitForFixedUpdate = true);
override this.MoveTo : UnityEngine.Vector3 * int * bool -> System.Collections.IEnumerator
Public Iterator Overrides Function MoveTo (newPosition As Vector3, Optional numSteps As Integer = -1, Optional waitForFixedUpdate As Boolean = true) As IEnumerator

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