Packageaway3dlite.animators
Classpublic class BonesAnimator
InheritanceBonesAnimator Inheritance Object

hold the animation information for a bones animation imported from a collada object

See also

away3dlite.loaders.Collada


Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
Property Detail
lengthproperty
public var length:Number

Defines the total length of the animation in seconds

loopproperty 
public var loop:Boolean

Defines wether the animation will loop

startproperty 
public var start:Number

Defines the start of the animation in seconds

Constructor Detail
BonesAnimator()Constructor
public function BonesAnimator()



####INIT####
Method Detail
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

Returns
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.