How To

Mirror Engine API / Animation
Class: Animation
An animation is a sequence of keyframe arrays which map to the nodes of a skeletal hierarchy. It controls how the nodes of the hierarchy are transformed over time.
Constructors
new Animation()
new Animation(): Animation
Create a new Animation instance.
Returns
Properties
duration
duration: number = 0
Duration of the animation in seconds.
name
name: string = ''
Human-readable name of the animation.
nodes
Get Signature
get nodes(): Node[]
A read-only property to get array of animation nodes.
Returns
Node
[]
Methods
addNode()
addNode(node: Node): void
Adds a node to the internal nodes array.
Parameters
node
The node to add.
Returns
void
getNode()
getNode(name: string): Node
Gets a Node by name.
Parameters
name
string
The name of the Node.
Returns
The Node with the specified name.