API reference
API reference
Select your platform
No SDKs available
No versions available

PinchGrabAPI Class

Extends IFingerAPI
This Finger API uses an advanced calculation for the pinch value of the fingers to detect if they are grabbing

Member Functions

PinchGrabAPI
( IHmd hmd )
Determines if a specific finger is currently in a grabbing state.
Parameters
finger
The HandFinger to check for grabbing state.
Returns
True if the specified finger is grabbing, false otherwise.
Gets the local space offset from the wrist position for grab calculations.
Returns
The offset vector in local space coordinates.
Detects changes in a finger's grabbing state relative to a target state.
Parameters
finger
The HandFinger to check for state changes.
targetPinchState
The target grab state to compare against.
Returns
True if the finger's grab state has changed to match the target state.
Retrieves a normalized score indicating how strongly a finger is grabbing.
Parameters
finger
The HandFinger to evaluate.
Returns
A value between 0 and 1, where 0 indicates no grab and 1 indicates maximum grab strength.
Updates the finger API with the latest hand tracking data.
Parameters
hand
The IHand tracking data to process.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon