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

JointRotationActiveState Class

Extends MonoBehaviour
Tracks angular velocities (rotation deltas over the last two frames) for a list of joints and compares them to a rotation target around the provided axes.
If the rotation target (degrees per second) is met for the minimum time threshold, the state becomes Active.

Protected Fields

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

Fields

FeatureConfigs : IReadOnlyList< JointRotationFeatureConfig >
Signature
IReadOnlyList<JointRotationFeatureConfig> Oculus.Interaction.PoseDetection.JointRotationActiveState.FeatureConfigs
FeatureStates : IReadOnlyDictionary< JointRotationFeatureConfig, JointRotationFeatureState >
Signature
IReadOnlyDictionary<JointRotationFeatureConfig, JointRotationFeatureState> Oculus.Interaction.PoseDetection.JointRotationActiveState.FeatureStates

Properties

Active : bool
[Get]
Signature
bool Oculus.Interaction.PoseDetection.JointRotationActiveState.Active
Hand : IHand
[Get]
Signature
IHand Oculus.Interaction.PoseDetection.JointRotationActiveState.Hand

Protected Methods

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

Methods

InjectAllJointRotationActiveState ( featureConfigs , hand , jointDeltaProvider )
Signature
void Oculus.Interaction.PoseDetection.JointRotationActiveState.InjectAllJointRotationActiveState(JointRotationFeatureConfigList featureConfigs, IHand hand, IJointDeltaProvider jointDeltaProvider)
Parameters
featureConfigs: JointRotationFeatureConfigList
hand: IHand
jointDeltaProvider: IJointDeltaProvider
Returns
void
InjectFeatureConfigList ( featureConfigs )
Signature
void Oculus.Interaction.PoseDetection.JointRotationActiveState.InjectFeatureConfigList(JointRotationFeatureConfigList featureConfigs)
Parameters
featureConfigs: JointRotationFeatureConfigList
Returns
void
InjectHand ( hand )
Signature
void Oculus.Interaction.PoseDetection.JointRotationActiveState.InjectHand(IHand hand)
Parameters
hand: IHand
Returns
void
InjectJointDeltaProvider ( jointDeltaProvider )
Signature
void Oculus.Interaction.PoseDetection.JointRotationActiveState.InjectJointDeltaProvider(IJointDeltaProvider jointDeltaProvider)
Parameters
jointDeltaProvider: IJointDeltaProvider
Returns
void
InjectOptionalTimeProvider ( timeProvider )
Signature
void Oculus.Interaction.PoseDetection.JointRotationActiveState.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.JointRotationActiveState.SetTimeProvider(Func< float > timeProvider)
Parameters
timeProvider: Func< float >
Returns
void

Inner Classes

JointRotationFeatureConfig Class

Fields

HandAxis : HandAxis
Signature
HandAxis Oculus.Interaction.PoseDetection.JointRotationActiveState.JointRotationFeatureConfig.HandAxis
RelativeTo : RelativeTo
Signature
RelativeTo Oculus.Interaction.PoseDetection.JointRotationActiveState.JointRotationFeatureConfig.RelativeTo
WorldAxis : WorldAxis
Signature
WorldAxis Oculus.Interaction.PoseDetection.JointRotationActiveState.JointRotationFeatureConfig.WorldAxis

JointRotationFeatureConfigList Class

Fields

Values : List< JointRotationFeatureConfig >
Signature
List<JointRotationFeatureConfig> Oculus.Interaction.PoseDetection.JointRotationActiveState.JointRotationFeatureConfigList.Values

Inner Struct

JointRotationFeatureState Struct

Constructors

JointRotationFeatureState ( targetAxis , amount )
Signature
Oculus.Interaction.PoseDetection.JointRotationActiveState.JointRotationFeatureState.JointRotationFeatureState(Vector3 targetAxis, float amount)
Parameters
targetAxis: Vector3
amount: float

Fields

Amount : readonly float
The normalized joint rotation along the target axis relative to _degreesPerSecond
Signature
readonly float Oculus.Interaction.PoseDetection.JointRotationActiveState.JointRotationFeatureState.Amount
TargetAxis : readonly Vector3
The world target euler angles for a JointRotationFeatureConfig
Signature
readonly Vector3 Oculus.Interaction.PoseDetection.JointRotationActiveState.JointRotationFeatureState.TargetAxis

Inner Enums

RelativeTo Enum

Enumeration Constants

MemberValue
Hand
0
World
1

WorldAxis Enum

Enumeration Constants

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

HandAxis Enum

Enumeration Constants

MemberValue
Pronation
0
Supination
1
RadialDeviation
2
UlnarDeviation
3
Extension
4
Flexion
5