Modifier

Partager via


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).

public:
 bool TryGetNearGraspPoint([Runtime::InteropServices::Out] UnityEngine::Vector3 % position);
public bool TryGetNearGraspPoint (out UnityEngine.Vector3 position);
abstract member TryGetNearGraspPoint : Vector3 -> bool
Public Function TryGetNearGraspPoint (ByRef position As Vector3) As Boolean

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.

Applies to