A Skeleton object is a hierarchical grouping of joint objects that can be used for skeletal animation.

See also:

  • away3d.animators.data.SkeletonJoint

Constructor

new()

Creates a new Skeleton object

Variables

read onlyassetType:String

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.

read onlynumJoints:Int

Methods

dispose():Void

@inheritDoc

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

Inherited Variables

Defined by NamedAssetBase

read onlyassetFullPath:Array<Dynamic>

read onlyassetNamespace:String

id:String

name:String

read onlyoriginalName:String

Inherited Methods

Defined by NamedAssetBase

assetPathEquals(name:String, ns:String):Bool

@:value({ overrideOriginal : true, ns : null })resetAssetPath(name:String, ?ns:String, overrideOriginal:Bool = true):Void