API reference

BodyPoseComparerActiveState Class

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

Fields

FeatureStates : IReadOnlyDictionary< JointComparerConfig, BodyPoseComparerFeatureState >
Signature
IReadOnlyDictionary<JointComparerConfig, BodyPoseComparerFeatureState> Oculus.Interaction.Body.PoseDetection.BodyPoseComparerActiveState.FeatureStates

Properties

Active : bool
[Get]
Signature
bool Oculus.Interaction.Body.PoseDetection.BodyPoseComparerActiveState.Active
MinTimeInState : float
[Get][Set]
Signature
float Oculus.Interaction.Body.PoseDetection.BodyPoseComparerActiveState.MinTimeInState

Protected Methods

Awake ()
Signature
virtual void Oculus.Interaction.Body.PoseDetection.BodyPoseComparerActiveState.Awake()
Returns
void
Start ()
Signature
virtual void Oculus.Interaction.Body.PoseDetection.BodyPoseComparerActiveState.Start()
Returns
void

Methods

InjectAllBodyPoseComparerActiveState ( poseA , poseB , configs )
Signature
void Oculus.Interaction.Body.PoseDetection.BodyPoseComparerActiveState.InjectAllBodyPoseComparerActiveState(IBodyPose poseA, IBodyPose poseB, IEnumerable< JointComparerConfig > configs)
Parameters
poseA: IBodyPose
poseB: IBodyPose
configs: IEnumerable< JointComparerConfig >
Returns
void
InjectJoints ( configs )
Signature
void Oculus.Interaction.Body.PoseDetection.BodyPoseComparerActiveState.InjectJoints(IEnumerable< JointComparerConfig > configs)
Parameters
configs: IEnumerable< JointComparerConfig >
Returns
void
InjectOptionalTimeProvider ( timeProvider )
Signature
void Oculus.Interaction.Body.PoseDetection.BodyPoseComparerActiveState.InjectOptionalTimeProvider(Func< float > timeProvider)
Parameters
timeProvider: Func< float >
Returns
void
InjectPoseA ( poseA )
Signature
void Oculus.Interaction.Body.PoseDetection.BodyPoseComparerActiveState.InjectPoseA(IBodyPose poseA)
Parameters
poseA: IBodyPose
Returns
void
InjectPoseB ( poseB )
Signature
void Oculus.Interaction.Body.PoseDetection.BodyPoseComparerActiveState.InjectPoseB(IBodyPose poseB)
Parameters
poseB: IBodyPose
Returns
void
SetTimeProvider ( timeProvider )
Sets a function that returns the current time in seconds
Signature
void Oculus.Interaction.Body.PoseDetection.BodyPoseComparerActiveState.SetTimeProvider(Func< float > timeProvider)
Parameters
timeProvider: Func< float >
Returns
void

Inner Class

JointComparerConfig Class

Fields

Joint : BodyJointId
Signature
BodyJointId Oculus.Interaction.Body.PoseDetection.BodyPoseComparerActiveState.JointComparerConfig.Joint
MaxDelta : float
Signature
float Oculus.Interaction.Body.PoseDetection.BodyPoseComparerActiveState.JointComparerConfig.MaxDelta
Width : float
Signature
float Oculus.Interaction.Body.PoseDetection.BodyPoseComparerActiveState.JointComparerConfig.Width

Inner Struct

BodyPoseComparerFeatureState Struct

Constructors

BodyPoseComparerFeatureState ( delta , maxDelta )
Signature
Oculus.Interaction.Body.PoseDetection.BodyPoseComparerActiveState.BodyPoseComparerFeatureState.BodyPoseComparerFeatureState(float delta, float maxDelta)
Parameters
delta: float
maxDelta: float

Fields

Delta : readonly float
Signature
readonly float Oculus.Interaction.Body.PoseDetection.BodyPoseComparerActiveState.BodyPoseComparerFeatureState.Delta
MaxDelta : readonly float
Signature
readonly float Oculus.Interaction.Body.PoseDetection.BodyPoseComparerActiveState.BodyPoseComparerFeatureState.MaxDelta