API Reference

Class List

pc.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

durationDuration of the animation in seconds.
nameHuman-readable name of the animation
nodesA read-only property to get array of animation nodes[read only]

Methods

addNodeAdds a node the the internal nodes array.
getNodeGets a pc.Node by name

Details

Constructor

Animation()

Returns

pc.Animation A new pc.Animation object.

Properties

Numberduration

Duration of the animation in seconds.

Stringname

Human-readable name of the animation

pc.Node[]nodes

A read-only property to get array of animation nodes[read only]

Methods

addNode(node)

Adds a node the the internal nodes array.

Parameters

nodepc.NodeThe node to add.

getNode(name)

Gets a pc.Node by name

Parameters

nameStringThe name of the pc.Node

Returns

pc.Node The pc.Node with the specified name