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

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.

Properties

IHand Hand[Get]
IHmd Hmd[Get]
ITrackingToWorldTransformer TrackingToWorldTransformer[Get]

Protected Fields

bool _started[Get]

Member Functions

Sets a function that returns the current time in seconds.
void RegisterConfig
( TransformConfig transformConfig )
void UnRegisterConfig
( TransformConfig transformConfig )
bool IsHandDataValid ( )
bool IsStateActive
( TransformConfig config,
TransformFeature feature,
FeatureStateActiveMode mode,
string stateId )
bool GetCurrentState
( TransformConfig config,
TransformFeature transformFeature,
out string currentState )
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 GetFeatureVectorAndWristPos
( TransformConfig config,
TransformFeature transformFeature,
bool isHandVector,
ref Vector3? featureVec,
ref Vector3? wristPos )
void InjectAllTransformFeatureStateProvider
( IHand hand,
IHmd hmd,
bool disableProactiveEvaluation )
void InjectHand
( IHand hand )
void InjectHmd
( IHmd hand )
void InjectDisableProactiveEvaluation
( bool disabled )
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