PointerUtils.TryGetMotionControllerEndPoint(Handedness, Vector3) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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