Packagealternativa.engine3d.animation
Classpublic class AnimationController
InheritanceAnimationController Inheritance Object

Controls animation playback and blending. I.e. it animates model using information stored in AnimationClip-s and generated by AnimationSwitcher and AnimationCouple blenders. You have to call method update() each frame, which refreshes all child animation clips and blenders, which return list of properties and values to controller after that. You can use this list to set those properties. Controller sets those values and as a result the animation goes on. Animation control is carried out with the help of animated flag, and with AnimationSwitcher blender, which can transfer clip from active state to passive and vice versa.

See also

alternativa.engine3d.animation.AnimationClip
alternativa.engine3d.animation.AnimationCouple
alternativa.engine3d.animation.AnimationSwitcher


Public Properties
 PropertyDefined By
  root : AnimationNode
Root of the animation tree.
AnimationController
Public Methods
 MethodDefined By
  
Creates a AnimationController object.
AnimationController
  
freeze():void
Freezes internal time counter till the next update() call.
AnimationController
  
update():void
Plays animations on the time interval passed since the last update() call.
AnimationController
Property Detail
rootproperty
root:AnimationNode

Root of the animation tree.


Implementation
    public function get root():AnimationNode
    public function set root(value:AnimationNode):void
Constructor Detail
AnimationController()Constructor
public function AnimationController()

Creates a AnimationController object.

Method Detail
freeze()method
public function freeze():void

Freezes internal time counter till the next update() call.

See also

update()method 
public function update():void

Plays animations on the time interval passed since the last update() call. If freeze() method was called after the last update(), animation will continue from that moment.