AnimationMixer

The AnimationMixer is a player for animations on a particular object in the scene. When multiple objects in the scene are animated independently, one AnimationMixer may be used for each object.

Constructor

new AnimationMixer()

Methods

addAction(action)

Add an action to this mixer.

Parameters:
NameTypeDescription
actionAnimationAction

The action to add.

getActions() → {Array.<AnimationAction>}

Get all actions.

Returns:
Type: 
Array.<AnimationAction>

hasAction(action) → {boolean}

Whether has this action.

Parameters:
NameTypeDescription
actionAnimationAction

The action.

Returns:
Type: 
boolean

removeAction(action)

Remove an action from this mixer.

Parameters:
NameTypeDescription
actionAnimationAction

The action to be removed.

update(deltaTime)

Advances the global mixer time and updates the animation.

Parameters:
NameTypeDescription
deltaTimenumber

The delta time in seconds.