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

FingerFeatureStateProvider Class

Interprets finger feature values using FingerShapes and uses the given FingerFeatureStateThresholds to quantize these values into states.
To avoid rapid fluctuations at the edges of two states, this class uses the calculated feature state from the previous frame and the given state thresholds to apply a buffer between state transition edges.

Properties

IHand Hand[Get]
static FingerShapes DefaultFingerShapes[Get]

Protected Fields

bool _started[Get]

Member Functions

Sets a function that returns the current time in seconds.
bool GetCurrentState
( HandFinger finger,
FingerFeature fingerFeature,
out string currentState )
Returns the current value of the feature.
If the finger joints are not populated with valid data (for instance, due to a disconnected hand), the method will return NaN.
FingerShapes GetValueProvider
( HandFinger finger )
bool IsStateActive
( HandFinger finger,
FingerFeature feature,
FeatureStateActiveMode mode,
string stateId )
void InjectAllFingerFeatureStateProvider
( IHand hand,
List< FingerStateThresholds > fingerStateThresholds,
FingerShapes fingerShapes,
bool disableProactiveEvaluation )
void InjectHand
( IHand hand )
void InjectFingerStateThresholds
( List< FingerStateThresholds > fingerStateThresholds )
void InjectFingerShapes
( FingerShapes fingerShapes )
void InjectDisableProactiveEvaluation
( bool disableProactiveEvaluation )
void InjectOptionalTimeProvider
( Func< float > timeProvider )

Protected Functions

virtual void Awake ( )
virtual void Start ( )
virtual void OnEnable ( )
virtual void OnDisable ( )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon