Package | away3d.animators.data |
Class | public class Skeleton |
Inheritance | Skeleton NamedAssetBase flash.events.EventDispatcher |
Implements | IAsset |
See also
Property | Defined By | ||
---|---|---|---|
assetFullPath : Array [read-only] | NamedAssetBase | ||
assetNamespace : String [read-only] | NamedAssetBase | ||
assetType : String [read-only]
| Skeleton | ||
joints : Vector.<SkeletonJoint>
A flat list of joint objects that comprise the skeleton. | Skeleton | ||
name : String | NamedAssetBase | ||
numJoints : uint [read-only]
The total number of joints in the skeleton. | Skeleton | ||
originalName : String [read-only]
The original name used for this asset in the resource (e.g. | NamedAssetBase |
Method | Defined By | ||
---|---|---|---|
Skeleton()
Creates a new Skeleton object
| Skeleton | ||
assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | ||
dispose():void
Cleans up resources used by this asset. | Skeleton | ||
jointFromName(jointName:String):SkeletonJoint
Returns the joint object in the skeleton with the given name, otherwise returns a null object. | Skeleton | ||
jointIndexFromName(jointName:String):int
Returns the joint index, given the joint name. | Skeleton | ||
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase |
assetType | property |
assetType:String
[read-only]
public function get assetType():String
joints | property |
public var 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.
numJoints | property |
numJoints:uint
[read-only] The total number of joints in the skeleton.
public function get numJoints():uint
Skeleton | () | Constructor |
public function Skeleton()
Creates a new Skeleton
object
dispose | () | method |
public function dispose():void
Cleans up resources used by this asset.
jointFromName | () | method |
public function jointFromName(jointName:String):SkeletonJoint
Returns the joint object in the skeleton with the given name, otherwise returns a null object.
Parameters
jointName:String — The name of the joint object to be found.
|
SkeletonJoint — The joint object with the given name.
|
See also
jointIndexFromName | () | method |
public function jointIndexFromName(jointName:String):int
Returns the joint index, given the joint name. -1 is returned if the joint name is not found.
Parameters
jointName:String — The name of the joint object to be found.
|
int — The index of the joint object in the joints vector.
|
See also