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

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.[read only]

Methods

addNode

Adds a node to the internal nodes array.

getNode

Gets a pc.Node by name.

Details

Constructor

Animation()

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 to the internal nodes array.

Parameters

nodepc.Node

The node to add.

getNode(name)

Gets a pc.Node by name.

Parameters

namestring

The name of the pc.Node.

Returns

pc.Node

The pc.Node with the specified name.