AnimationClip

AnimationClip

AnimationClip manages a set of animation channels as a single clip entity.

Constructor

new AnimationClip(name, channelsopt)

Parameters:
Name Type Attributes Default Description
name string

Name of clip

channels Array.<AbstractAnimationChannel> <optional>
[]

an array of channels to shallow copy locally.

Methods

addChannel(channel)

Add a channel to this clip.

Parameters:
Name Type Description
channel AbstractAnimationChannel

the channel to add.

findChannelByName(channelName) → {AbstractAnimationChannel}

Locate a channel in this clip using its channel name.

Parameters:
Name Type Description
channelName string

the name to match against.

removeChannel(channel) → {boolean}

Remove a given channel from this clip.

Parameters:
Name Type Description
channel AbstractAnimationChannel

the channel to remove.