編集

次の方法で共有


PointerUtils.TryGetMotionControllerEndPoint(Handedness, Vector3) Method

Definition

Tries to get the end point of a motion controller. If no pointer of given handedness is found, returns false and sets result to zero.

public:
 static bool TryGetMotionControllerEndPoint(Microsoft::MixedReality::Toolkit::Utilities::Handedness handedness, [Runtime::InteropServices::Out] UnityEngine::Vector3 % endPoint);
public static bool TryGetMotionControllerEndPoint (Microsoft.MixedReality.Toolkit.Utilities.Handedness handedness, out UnityEngine.Vector3 endPoint);
static member TryGetMotionControllerEndPoint : Microsoft.MixedReality.Toolkit.Utilities.Handedness * Vector3 -> bool
Public Shared Function TryGetMotionControllerEndPoint (handedness As Handedness, ByRef endPoint As Vector3) As Boolean

Parameters

handedness
Handedness

Handedness of ray

endPoint
UnityEngine.Vector3

The output position

Returns

True if pointer found, false otherwise. If not found, endPoint is set to zero

Applies to