TestMotionController.SelectAndThrowAt(Vector3, Boolean, Int32) Method

Definition

Combined sequence of selecting, moving, and releasing.

C#
public System.Collections.IEnumerator SelectAndThrowAt (UnityEngine.Vector3 positionToRelease, bool waitForFinalFixedUpdate, int numSteps = 30);

Parameters

positionToRelease
UnityEngine.Vector3

The position to which the hand moves while pinching

waitForFinalFixedUpdate
Boolean

Wait for a final physics update after releasing

numSteps
Int32

Number of steps of the hand movement

Returns

Applies to

Produkt Versioner
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