Class Animation

Animation object which handles all animation specific to the gameobject

Inherits from

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.

Properties

Name Type Description
currBoneTransforms [get] gl3n.linalg.Matrix!(float,4,4)[]
currBoneTransforms [set] gl3n.linalg.Matrix!(float,4,4)[]

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.

Authors

Copyright

License