Animation

Animation object which handles all animation specific to the gameobject

Constructors

this
this()

Bone transforms for the current pose (Passed to the shader)

this
this(AnimationData assetAnimation)

Create animation object based on asset animation

Members

Functions

changeAnimation
void changeAnimation(int animNumber, int startAnimTime)

Switches the current animation

pause
void pause()

Pause the animation

play
void play()

Continue animating.

runAnimationOnce
void runAnimationOnce(int animNumber, int returnAnimNumber)

Runs an animation once, then returns

shutdown
void shutdown()

Shutdown the gameobjects animation data

stop
void stop()

Stops the animation, moving to the beginning

update
void update()

Updates the animation, updating time and getting a pose based on time

Meta