Class Animation
Animation
object which handles all animation specific to the gameobject
Constructors
Name |
Description |
this
|
Create animation object based on asset animation
|
Fields
Name |
Type |
Description |
owner
|
GameObject |
The GameObject that owns this component.
|
yaml
|
dyaml.node.Node |
The node that defined the component.
|
Methods
Name |
Description |
changeAnimation
|
Switches the current animation
|
pause
|
Pause the animation
|
play
|
Continue animating.
|
runAnimationOnce
|
Runs an animation once, then returns
|
shutdown
|
Shutdown the gameobjects animation data
|
stop
|
Stops the animation, moving to the beginning
|
update
|
Updates the animation, updating time and getting a pose based on time
|
draw
|
Called on the draw cycle.
|
initialize
|
The function called on initialization of the object.
|
refresh
|
Called when refreshing an object.
|