t3d. 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
actiont3d.AnimationActionThe action to add.

getActions() → {Array.<t3d.AnimationAction>}

Get all actions.
Returns:
Type: 
Array.<t3d.AnimationAction>

hasAction(action) → {Boolean}

Whether has this action.
Parameters:
NameTypeDescription
actiont3d.AnimationActionThe action.
Returns:
Type: 
Boolean

removeAction(action)

Remove an action from this mixer.
Parameters:
NameTypeDescription
actiont3d.AnimationActionThe action to be removed.

update(deltaTime)

Advances the global mixer time and updates the animation.
Parameters:
NameTypeDescription
deltaTimeNumberThe delta time in seconds.