Bearbeiten

Freigeben über


PokePointer.IMixedRealityNearPointer.TryGetNearGraspPoint(Vector3) Method

Definition

For near pointer we may want to draw a tether between the pointer and the object.

The visual grasp point (average of index and thumb) may actually be different from the pointer position (the palm).

This method provides a mechanism to get the visual grasp point.

NOTE: Not all near pointers have a grasp point (for example a poke pointer).

 virtual bool Microsoft.MixedReality.Toolkit.Input.IMixedRealityNearPointer.TryGetNearGraspPoint([Runtime::InteropServices::Out] UnityEngine::Vector3 % position) = Microsoft::MixedReality::Toolkit::Input::IMixedRealityNearPointer::TryGetNearGraspPoint;
bool IMixedRealityNearPointer.TryGetNearGraspPoint (out UnityEngine.Vector3 position);
abstract member Microsoft.MixedReality.Toolkit.Input.IMixedRealityNearPointer.TryGetNearGraspPoint : Vector3 -> bool
override this.Microsoft.MixedReality.Toolkit.Input.IMixedRealityNearPointer.TryGetNearGraspPoint : Vector3 -> bool
Function TryGetNearGraspPoint (ByRef position As Vector3) As Boolean Implements IMixedRealityNearPointer.TryGetNearGraspPoint

Parameters

position
UnityEngine.Vector3

Out parameter filled with the grasp position if available, otherwise Vector3.zero.

Returns

True if a grasp point was retrieved, false if not.

Implements

Applies to