API Reference

Class List

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.

Summary

Properties

duration

Duration of the animation in seconds.

name

Human-readable name of the animation.

nodes

A read-only property to get array of animation nodes.

Methods

addNode

Adds a node to the internal nodes array.

getNode

Gets a Node by name.

Details

Constructor

Animation()

Create a new Animation instance.

Properties

numberduration

Duration of the animation in seconds.

stringname

Human-readable name of the animation.

Node[]nodes

A read-only property to get array of animation nodes.

Methods

addNode(node)

Adds a node to the internal nodes array.

Parameters

nodeNode

The node to add.

getNode(name)

Gets a Node by name.

Parameters

namestring

The name of the Node.

Returns

Node

The Node with the specified name.