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

JointDistanceActiveState Class

Extends MonoBehaviour, IActiveState
This component tracks the distance between two hand joints and reports IActiveState.Active when distance is under a provided threshold.

Properties

HandJointId JointIdA[Get]
HandJointId JointIdB[Get]
Evaluates the current state of the component and returns whether it is active.
The logic for determining the active state is defined by the implementing class. This method is typically used in interaction scripts to check whether a certain condition is met before triggering an event or action. For example implementations, please refer to HandActiveState.Active and ActiveStateGroup.Active.
Returns
Returns true if the component is currently active; otherwise, returns false.

Protected Functions

virtual void Awake ( )
virtual void Start ( )
virtual void Update ( )

Member Functions

void InjectAllJointDistanceActiveState
( IHand handA,
IHand handB )
void InjectHandA
( IHand handA )
void InjectJointIdA
( HandJointId jointIdA )
void InjectHandB
( IHand handB )
void InjectJointIdB
( HandJointId jointIdB )
void InjectOptionalDistance
( float val )
void InjectOptionalThresholdWidth
( float val )
void InjectOptionalMinTimeInState
( float val )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon