API reference

JointDistanceActiveState Class

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

Properties

Active : bool
[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.
Signature
bool Active
JointIdA : HandJointId
[Get][Set]
Signature
HandJointId JointIdA
JointIdB : HandJointId
[Get][Set]
Signature
HandJointId JointIdB

Protected Methods

Awake ()
Signature
virtual void Awake()
Returns
void
Start ()
Signature
virtual void Start()
Returns
void
Update ()
Signature
virtual void Update()
Returns
void

Methods

InjectAllJointDistanceActiveState ( handA , handB )
Signature
void InjectAllJointDistanceActiveState(IHand handA, IHand handB)
Parameters
handA: IHand
handB: IHand
Returns
void
InjectHandA ( handA )
Signature
void InjectHandA(IHand handA)
Parameters
handA: IHand
Returns
void
InjectHandB ( handB )
Signature
void InjectHandB(IHand handB)
Parameters
handB: IHand
Returns
void
InjectJointIdA ( jointIdA )
Signature
void InjectJointIdA(HandJointId jointIdA)
Parameters
jointIdA: HandJointId
Returns
void
InjectJointIdB ( jointIdB )
Signature
void InjectJointIdB(HandJointId jointIdB)
Parameters
jointIdB: HandJointId
Returns
void
InjectOptionalDistance ( val )
Signature
void InjectOptionalDistance(float val)
Parameters
val: float
Returns
void
InjectOptionalMinTimeInState ( val )
Signature
void InjectOptionalMinTimeInState(float val)
Parameters
val: float
Returns
void
InjectOptionalThresholdWidth ( val )
Signature
void InjectOptionalThresholdWidth(float val)
Parameters
val: float
Returns
void