IFingerFeatureStateProvider Interface
Defines an interface for tracking and managing finger states.
This interface provides methods to query current finger states, check state transitions, and access raw feature values for hand tracking.
Common implementations include Oculus.Interaction.PoseDetection.FingerFeatureStateProvider which uses Oculus.Interaction.PoseDetection.FingerFeatureStateThresholds to quantize continuous finger movements into discrete states.
bool GetCurrentState ( HandFinger finger,
FingerFeature fingerFeature,
out string currentState )
Retrieves the current state of a specific finger feature.
ParametersfingerThe HandFinger to query.
fingerFeatureThe specific FingerFeature to check (e.g., curl, flexion).
currentStateThe current state identifier if available.
ReturnsTrue if a valid state was retrieved, false otherwise.
bool IsStateActive ( HandFinger finger,
FingerFeature feature,
FeatureStateActiveMode mode,
string stateId )
Checks if a specific state is active for a given finger and feature.
ParametersfingerThe HandFinger to check.
featureThe FingerFeature to evaluate.
modeThe mode of state evaluation (Is/IsNot).
stateIdThe state identifier to compare against.
ReturnsTrue if the state condition is met, false otherwise.
float GetFeatureValue ( HandFinger finger,
FingerFeature fingerFeature )
Gets the raw feature value for a specific finger and feature type.
ParametersfingerThe HandFinger to measure.
fingerFeatureThe FingerFeature to measure.
ReturnsThe feature value if available, null otherwise.