編集

次の方法で共有


TestController.MoveTo(Vector3, Int32, Boolean) Method

Definition

Move controller to given position over some number of frames

public abstract System.Collections.IEnumerator MoveTo (UnityEngine.Vector3 newPosition, int numSteps = -1, bool waitForFixedUpdate = true);
abstract member MoveTo : UnityEngine.Vector3 * int * bool -> System.Collections.IEnumerator
Public MustOverride 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