Packageaway3dlite.animators
Classpublic class BonesAnimator

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
  
Populates the skin vertex list from the set of unique vertices
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 Parameters
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
populateVertices()method 
public function populateVertices():void

Populates the skin vertex list from the set of unique vertices

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.
Wiki link
Click to go to the wiki page for 'away3dlite.animators.BonesAnimator'

Code examples

Comments