Meta VR FingerPinchGrabAPI Reference Guide
- Meta features the FingerPinchGrabAPI Class within its interaction API reference for virtual and mixed reality applications.
- The API provides several methods to measure finger movement and interaction states.
- Additionally, the GetFingerIsGrabbingChanged method detects changes in a finger's grabbing state relative to a target state by taking a HandFinger and a target pinch state boolean.
Meta features the FingerPinchGrabAPI Class within its interaction API reference for virtual and mixed reality applications. Evaluating Grab Strength in Virtual Reality The new FingerPinchGrabAPI class includes specific methods designed to process hand tracking data and evaluate finger-based interactions in the Interaction SDK v201 framework.
Evaluating Grab Strength and Pinch States
The API provides several methods to measure finger movement and interaction states. Developers can use GetFingerGrabScore to retrieve a normalized score indicating how strongly a finger is grabbing, returning a float value between 0 and 1 where 0 indicates no grab and 1 indicates maximum grab strength. To determine if a specific finger is currently in a grabbing state, the class supplies the GetFingerIsGrabbing method, which accepts a HandFinger parameter and returns a boolean value.
Additionally, the GetFingerIsGrabbingChanged method detects changes in a finger’s grabbing state relative to a target state by taking a HandFinger and a target pinch state boolean. The class also supports measuring physical attributes through GetFingerPinchDistance and GetFingerPinchPercent.
Managing Parameters and Hand Tracking Updates
For configuration and spatial calculations, developers can interact with specific parameters and wrist offsets. The GetPinchGrabParam and SetPinchGrabParam methods handle pinch grab parameters using the PinchGrabParam identifier. Furthermore, developers can retrieve the local space offset from the wrist position for grab calculations by calling GetWristOffsetLocal, which returns a vector in local space coordinates.
To keep the interaction logic current, the FingerPinchGrabAPI Class relies on the Update method. This function processes the latest hand tracking data by accepting an IHand tracking data parameter to refresh the finger API.
