| Package | alternativa.engine3d.animation |
| Class | public class AnimationController |
| Inheritance | AnimationController Object |
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
| Property | Defined By | ||
|---|---|---|---|
| root : AnimationNode
Root of the animation tree. | AnimationController | ||
| Method | Defined 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 | ||
| root | property |
root:AnimationNodeRoot of the animation tree.
public function get root():AnimationNode public function set root(value:AnimationNode):void| AnimationController | () | Constructor |
public function AnimationController()Creates a AnimationController object.
| 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.