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

JointVelocityActiveState Class

Extends MonoBehaviour, IActiveState, ITimeConsumer
Tracks velocities (position deltas over the last two frames) for a list of joints and compares them to a velocity target along the provided axes.
If the velocity target (units per second) is met for the minimum time threshold, the state becomes Active.

Member Enumerations

Enumeration RelativeTo

Hand
= 0
World
= 1
Head
= 2

Enumeration WorldAxis

PositiveX
= 0
NegativeX
= 1
PositiveY
= 2
NegativeY
= 3
PositiveZ
= 4
NegativeZ
= 5

Enumeration HeadAxis

HeadForward
= 0
HeadBackward
= 1
HeadUp
= 2
HeadDown
= 3
HeadLeft
= 4
HeadRight
= 5

Enumeration HandAxis

PalmForward
= 0
PalmBackward
= 1
WristUp
= 2
WristDown
= 3
WristForward
= 4
WristBackward
= 5

Properties

IHand Hand[Get]
IJointDeltaProvider JointDeltaProvider[Get]
IHmd Hmd[Get]
bool Active[Get]

Fields

IReadOnlyList< JointVelocityFeatureConfig > FeatureConfigs[Get]
IReadOnlyDictionary< JointVelocityFeatureConfig, JointVelocityFeatureState > FeatureStates[Get]

Protected Fields

bool _started[Get]

Member Functions

Sets a function that returns the current time in seconds
void InjectAllJointVelocityActiveState
( JointVelocityFeatureConfigList featureConfigs,
IHand hand,
IJointDeltaProvider jointDeltaProvider )
void InjectFeatureConfigList
( JointVelocityFeatureConfigList featureConfigs )
void InjectHand
( IHand hand )
void InjectJointDeltaProvider
( IJointDeltaProvider jointDeltaProvider )
void InjectOptionalTimeProvider
( Func< float > timeProvider )
void InjectOptionalHmd
( IHmd hmd )

Protected Functions

virtual void Awake ( )
virtual void Start ( )
virtual void Update ( )
virtual void OnEnable ( )
virtual void OnDisable ( )
Did you find this page helpful?