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

JointVelocityActiveState Class

Extends MonoBehaviour
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.

Protected Fields

_started : bool
Signature
bool Oculus.Interaction.PoseDetection.JointVelocityActiveState._started

Properties

Active : bool
[Get]
Signature
bool Oculus.Interaction.PoseDetection.JointVelocityActiveState.Active
FeatureConfigs : IReadOnlyList< JointVelocityFeatureConfig >
[Get]
Signature
IReadOnlyList<JointVelocityFeatureConfig> Oculus.Interaction.PoseDetection.JointVelocityActiveState.FeatureConfigs
FeatureStates : IReadOnlyDictionary< JointVelocityFeatureConfig, JointVelocityFeatureState >
[Get]
Signature
IReadOnlyDictionary<JointVelocityFeatureConfig, JointVelocityFeatureState> Oculus.Interaction.PoseDetection.JointVelocityActiveState.FeatureStates
Hand : IHand
[Get]
Signature
IHand Oculus.Interaction.PoseDetection.JointVelocityActiveState.Hand
Hmd : IHmd
[Get]
Signature
IHmd Oculus.Interaction.PoseDetection.JointVelocityActiveState.Hmd
JointDeltaProvider : IJointDeltaProvider
[Get]
Signature
IJointDeltaProvider Oculus.Interaction.PoseDetection.JointVelocityActiveState.JointDeltaProvider

Protected Methods

Awake ()
Signature
virtual void Oculus.Interaction.PoseDetection.JointVelocityActiveState.Awake()
Returns
void
OnDisable ()
Signature
virtual void Oculus.Interaction.PoseDetection.JointVelocityActiveState.OnDisable()
Returns
void
OnEnable ()
Signature
virtual void Oculus.Interaction.PoseDetection.JointVelocityActiveState.OnEnable()
Returns
void
Start ()
Signature
virtual void Oculus.Interaction.PoseDetection.JointVelocityActiveState.Start()
Returns
void
Update ()
Signature
virtual void Oculus.Interaction.PoseDetection.JointVelocityActiveState.Update()
Returns
void

Methods

InjectAllJointVelocityActiveState ( featureConfigs , hand , jointDeltaProvider )
Signature
void Oculus.Interaction.PoseDetection.JointVelocityActiveState.InjectAllJointVelocityActiveState(JointVelocityFeatureConfigList featureConfigs, IHand hand, IJointDeltaProvider jointDeltaProvider)
Parameters
featureConfigs: JointVelocityFeatureConfigList
hand: IHand
jointDeltaProvider: IJointDeltaProvider
Returns
void
InjectFeatureConfigList ( featureConfigs )
Signature
void Oculus.Interaction.PoseDetection.JointVelocityActiveState.InjectFeatureConfigList(JointVelocityFeatureConfigList featureConfigs)
Parameters
featureConfigs: JointVelocityFeatureConfigList
Returns
void
InjectHand ( hand )
Signature
void Oculus.Interaction.PoseDetection.JointVelocityActiveState.InjectHand(IHand hand)
Parameters
hand: IHand
Returns
void
InjectJointDeltaProvider ( jointDeltaProvider )
Signature
void Oculus.Interaction.PoseDetection.JointVelocityActiveState.InjectJointDeltaProvider(IJointDeltaProvider jointDeltaProvider)
Parameters
jointDeltaProvider: IJointDeltaProvider
Returns
void
InjectOptionalHmd ( hmd )
Signature
void Oculus.Interaction.PoseDetection.JointVelocityActiveState.InjectOptionalHmd(IHmd hmd)
Parameters
hmd: IHmd
Returns
void
InjectOptionalTimeProvider ( timeProvider )
Signature
void Oculus.Interaction.PoseDetection.JointVelocityActiveState.InjectOptionalTimeProvider(Func< float > timeProvider)
Parameters
timeProvider: Func< float >
Returns
void
SetTimeProvider ( timeProvider )
Sets a function that returns the current time in seconds.
Signature
void Oculus.Interaction.PoseDetection.JointVelocityActiveState.SetTimeProvider(Func< float > timeProvider)
Parameters
timeProvider: Func< float >
Returns
void

Inner Classes

JointVelocityFeatureConfig Class

Properties

HandAxis : HandAxis
[Get]
Signature
HandAxis Oculus.Interaction.PoseDetection.JointVelocityActiveState.JointVelocityFeatureConfig.HandAxis
HeadAxis : HeadAxis
[Get]
Signature
HeadAxis Oculus.Interaction.PoseDetection.JointVelocityActiveState.JointVelocityFeatureConfig.HeadAxis
RelativeTo : RelativeTo
[Get]
Signature
RelativeTo Oculus.Interaction.PoseDetection.JointVelocityActiveState.JointVelocityFeatureConfig.RelativeTo
WorldAxis : WorldAxis
[Get]
Signature
WorldAxis Oculus.Interaction.PoseDetection.JointVelocityActiveState.JointVelocityFeatureConfig.WorldAxis

JointVelocityFeatureConfigList Class

Properties

Values : List< JointVelocityFeatureConfig >
[Get]
Signature
List<JointVelocityFeatureConfig> Oculus.Interaction.PoseDetection.JointVelocityActiveState.JointVelocityFeatureConfigList.Values

Inner Struct

JointVelocityFeatureState Struct

Constructors

JointVelocityFeatureState ( targetVector , velocity )
Signature
Oculus.Interaction.PoseDetection.JointVelocityActiveState.JointVelocityFeatureState.JointVelocityFeatureState(Vector3 targetVector, float velocity)
Parameters
targetVector: Vector3
velocity: float

Fields

Amount : readonly float
The normalized joint velocity along the target vector relative to _minVelocity
Signature
readonly float Oculus.Interaction.PoseDetection.JointVelocityActiveState.JointVelocityFeatureState.Amount
TargetVector : readonly Vector3
The world target vector for a JointVelocityFeatureConfig
Signature
readonly Vector3 Oculus.Interaction.PoseDetection.JointVelocityActiveState.JointVelocityFeatureState.TargetVector

Inner Enums

RelativeTo Enum

Enumeration Constants

MemberValue
Hand
0
World
1
Head
2

WorldAxis Enum

Enumeration Constants

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

HeadAxis Enum

Enumeration Constants

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

HandAxis Enum

Enumeration Constants

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