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

IFingerAPI Interface

Provides a standardized interface for tracking and measuring finger-based interactions in the Interaction SDK.
This interface enables different implementation methods for detecting palm grab, pinching, finger curl, and other hand poses. See Oculus.Interaction.GrabAPI.PalmGrabAPI and Oculus.Interaction.GrabAPI.PinchGrabAPI for example implementations.

Methods

GetFingerGrabScore ( finger )
Retrieves a normalized score indicating how strongly a finger is grabbing.
Signature
float Oculus.Interaction.IFingerAPI.GetFingerGrabScore(HandFinger finger)
Parameters
finger: HandFinger  The HandFinger to evaluate.
Returns
float  A value between 0 and 1, where 0 indicates no grab and 1 indicates maximum grab strength.
GetFingerIsGrabbing ( finger )
Determines if a specific finger is currently in a grabbing state.
Signature
bool Oculus.Interaction.IFingerAPI.GetFingerIsGrabbing(HandFinger finger)
Parameters
finger: HandFinger  The HandFinger to check for grabbing state.
Returns
bool  True if the specified finger is grabbing, false otherwise.
GetFingerIsGrabbingChanged ( finger , targetPinchState )
Detects changes in a finger's grabbing state relative to a target state.
Signature
bool Oculus.Interaction.IFingerAPI.GetFingerIsGrabbingChanged(HandFinger finger, bool targetPinchState)
Parameters
finger: HandFinger  The HandFinger to check for state changes.
targetPinchState: bool  The target grab state to compare against.
Returns
bool  True if the finger's grab state has changed to match the target state.
GetWristOffsetLocal ()
Gets the local space offset from the wrist position for grab calculations.
Signature
Vector3 Oculus.Interaction.IFingerAPI.GetWristOffsetLocal()
Returns
Vector3  The offset vector in local space coordinates.
Update ( hand )
Updates the finger API with the latest hand tracking data.
Signature
void Oculus.Interaction.IFingerAPI.Update(IHand hand)
Parameters
hand: IHand  The IHand tracking data to process.
Returns
void