API reference

BodyPoseSwitcher Class

Extends MonoBehaviour
Implements IBodyPose

Protected Fields

_started : bool
Signature
bool _started

Properties

SkeletonMapping : ISkeletonMapping
[Get]
The mapping of the skeleton.
Signature
ISkeletonMapping SkeletonMapping
Source : PoseSource
[Get][Set]
Signature
PoseSource Source

Events

WhenBodyPoseUpdated : Action
Signature
Action WhenBodyPoseUpdated

Protected Methods

Awake ()
Signature
virtual void Awake()
Returns
void
OnDisable ()
Signature
virtual void OnDisable()
Returns
void
OnEnable ()
Signature
virtual void OnEnable()
Returns
void
Start ()
Signature
virtual void Start()
Returns
void

Methods

GetJointPoseFromRoot ( bodyJointId , pose )
Attempts to return the pose of the requested body joint relative to the root joint BodyJointId.Body_Root.
Signature
bool GetJointPoseFromRoot(BodyJointId bodyJointId, out Pose pose)
Parameters
bodyJointId: BodyJointId
pose: out Pose
Returns
bool
GetJointPoseLocal ( bodyJointId , pose )
Attempts to return the pose of the requested body joint, in local space relative to its parent joint.
Signature
bool GetJointPoseLocal(BodyJointId bodyJointId, out Pose pose)
Parameters
bodyJointId: BodyJointId
pose: out Pose
Returns
bool
UsePoseA ()
Signature
void UsePoseA()
Returns
void
UsePoseB ()
Signature
void UsePoseB()
Returns
void

Inner Enum

PoseSource Enum

Enumeration Constants

Member
PoseA
PoseB