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

PoseFromBody Class

Extends MonoBehaviour
Implements IBodyPose
Exposes an IBodyPose from an IBody

Protected Fields

_started : bool
Signature
bool _started

Properties

AutoUpdate : bool
[Get][Set]
If true, this component will track the provided IBody as its data is updated.
If false, you must call UpdatePose to update joint data.
Signature
bool AutoUpdate
SkeletonMapping : ISkeletonMapping
[Get]
The mapping of the skeleton.
Signature
ISkeletonMapping SkeletonMapping

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
InjectAllPoseFromBody ( body )
Signature
void InjectAllPoseFromBody(IBody body)
Parameters
body: IBody
Returns
void
InjectBody ( body )
Signature
void InjectBody(IBody body)
Parameters
body: IBody
Returns
void
UpdatePose ()
Signature
void UpdatePose()
Returns
void