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

FingerPinchGrabAPI Class

Extends IFingerAPI

Member Functions

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.
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.
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.
Gets the local space offset from the wrist position for grab calculations.
Returns
The offset vector in local space coordinates.
Updates the finger API with the latest hand tracking data.
Parameters
hand
The IHand tracking data to process.
float GetFingerPinchPercent
( HandFinger finger )
float GetFingerPinchDistance
( HandFinger finger )
void SetPinchGrabParam
( PinchGrabParam paramId,
float paramVal )
float GetPinchGrabParam
( PinchGrabParam paramId )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon