Package | away3dlite.animators |
Class | public class BonesAnimator |
Inheritance | BonesAnimator Object |
See also
Property | Defined By | ||
---|---|---|---|
length : Number
Defines the total length of the animation in seconds
| BonesAnimator | ||
loop : Boolean
Defines wether the animation will loop
| BonesAnimator | ||
start : Number
Defines the start of the animation in seconds
| BonesAnimator |
Method | Defined By | ||
---|---|---|---|
BonesAnimator | |||
addChannel(channel:Channel):void
Adds an animation channel to the animation timeline. | BonesAnimator | ||
addSkinController(skinController:SkinController):void
Adds a SkinController and all associated SkinVertex objects to the animation. | BonesAnimator | ||
Clones the animation data into a new BonesAnimator object. | BonesAnimator | ||
update(time:Number, interpolate:Boolean = true):void
Updates all channels in the animation with the given time in seconds. | BonesAnimator |
length | property |
public var length:Number
Defines the total length of the animation in seconds
loop | property |
public var loop:Boolean
Defines wether the animation will loop
start | property |
public var start:Number
Defines the start of the animation in seconds
BonesAnimator | () | Constructor |
public function BonesAnimator()
addChannel | () | method |
public function addChannel(channel:Channel):void
Adds an animation channel to the animation timeline.
Parameters
channel:Channel |
addSkinController | () | method |
public function addSkinController(skinController:SkinController):void
Adds a SkinController
and all associated SkinVertex
objects to the animation.
Parameters
skinController:SkinController |
clone | () | method |
public function clone(object:ObjectContainer3D):BonesAnimator
Clones the animation data into a new BonesAnimator
object.
Parameters
object:ObjectContainer3D |
BonesAnimator |
update | () | method |
public function update(time:Number, interpolate:Boolean = true):void
Updates all channels in the animation with the given time in seconds.
Parameters
time:Number — Defines the time in seconds of the playhead of the animation.
| |
interpolate:Boolean (default = true ) — [optional] Defines whether the animation interpolates between channel points Defaults to true.
|