class SkeletonPose
package away3d.animators.data
extends NamedAssetBase
implements IAsset
Available on all platforms
A collection of pose objects, determining the pose for an entire skeleton.
The jointPoses vector object corresponds to a skeleton's joints vector object, however, there is no
reference to a skeleton's instance, since several skeletons can be influenced by the same pose (eg: animation
clips are added to any animator with a valid skeleton)
See also:
away3d.animators.data.Skeleton
away3d.animators.data.JointPose
Constructor
Variables
jointPoses:Vector<JointPose>
A flat list of pose objects that comprise the skeleton pose. The pose indices correspond to the target skeleton's joint indices.
See also:
away3d.animators.data.Skeleton#joints
Methods
clone():SkeletonPose
Creates a copy of the SkeletonPose object, with a dulpicate of its component joint poses.
Returns:
SkeletonPose
jointPoseFromName(jointName:String):JointPose
Returns the joint pose object with the given joint name, otherwise returns a null object.
Parameters:
jointName | The name of the joint object whose pose is to be found. |
|---|
Returns:
The pose object with the given joint name.
jointPoseIndexFromName(jointName:String):Int
Returns the pose index, given the joint name. -1 is returned if the joint name is not found in the pose.
Parameters:
The | name of the joint object whose pose is to be found. |
|---|
Returns:
The index of the pose object in the jointPoses vector.
See also:
jointPoses