TransformFeatureStateProvider Class
Interprets transform feature values from a TransformFeatureValueProvider and uses the given TransformFeatureStateThresholds to quantize these values into states.
To avoid rapid fluctuations at the edges of two states, this classes uses the calculated feature states from the previous frame and the given state thresholds to apply a buffer between state transition edges.
void SetTimeProvider ( Func< float > timeProvider )
Sets a function that returns the current time in seconds.
bool IsStateActiveTransformFeature feature,
FeatureStateActiveMode mode,
string stateId )
bool GetCurrentStateTransformFeature transformFeature,
out string currentState )
float? GetFeatureValueTransformFeature transformFeature )
Returns the current value of the feature.
If the hand joints are not populated with valid data (for instance, due to a disconnected hand), the method will return null;
void GetFeatureVectorAndWristPosTransformFeature transformFeature,
bool isHandVector,
ref Vector3? featureVec,
ref Vector3? wristPos )
void InjectAllTransformFeatureStateProviderbool disableProactiveEvaluation )
void InjectDisableProactiveEvaluation ( bool disabled )
void InjectOptionalTimeProvider ( Func< float > timeProvider )
virtual void OnEnable ( )
virtual void OnDisable ( )