class Skeleton
package away3d.animators.data
extends NamedAssetBase
implements IAsset
Available on all platforms
A Skeleton object is a hierarchical grouping of joint objects that can be used for skeletal animation.
See also:
away3d.animators.data.SkeletonJoint
Constructor
Variables
joints:Vector<SkeletonJoint>
A flat list of joint objects that comprise the skeleton. Every joint except for the root has a parentIndex property that is an index into this list. A child joint should always have a higher index than its parent.
Methods
jointFromName(jointName:String):SkeletonJoint
Returns the joint object in the skeleton with the given name, otherwise returns a null object.
Parameters:
jointName | The name of the joint object to be found. |
|---|
Returns:
The joint object with the given name.
See also:
joints
jointIndexFromName(jointName:String):Int
Returns the joint index, given the joint name. -1 is returned if the joint name is not found.
Parameters:
jointName | The name of the joint object to be found. |
|---|
Returns:
The index of the joint object in the joints vector.
See also:
joints