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.
new Animation(): Animation
Create a new Animation instance.
duration: number = 0
Duration of the animation in seconds.
name: string = ''
Human-readable name of the animation.
get nodes(): Node[]
A read-only property to get array of animation nodes.
addNode(node: Node): void
Adds a node to the internal nodes array.
The node to add.
void
getNode(name: string): Node
Gets a Node by name.
string
The name of the Node.
The Node with the specified name.