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

BodyPoseComparerActiveState Class

Extends MonoBehaviour, IActiveState, ITimeConsumer
Compares a user-provided set of joints between two Body Poses.
You can select which joints to monitor and what the maximum angle delta between each joint should be. If all joints are within this maximum range, the IActiveState becomes Active.

Properties

float MinTimeInState[Get]
IReadOnlyDictionary< JointComparerConfig, BodyPoseComparerFeatureState > FeatureStates[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.

Member Functions

Sets a function that returns the current time in seconds.
void InjectAllBodyPoseComparerActiveState
( IBodyPose poseA,
IBodyPose poseB,
IEnumerable< JointComparerConfig > configs )
void InjectPoseA
( IBodyPose poseA )
void InjectPoseB
( IBodyPose poseB )
void InjectJoints
( IEnumerable< JointComparerConfig > configs )
void InjectOptionalTimeProvider
( Func< float > timeProvider )

Protected Functions

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