AnimationMixer Class

Extends AnimationMixer
Module: Animation

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.

The object stores animations in its animations attribute, which is an array an of animation clips.

Item Index

Methods

createActions

(
  • animations
)

Create actions from array of animations.

Parameters:

  • animations Array

    Array of animations.

pause

()

Pause animation playback.

play

()

Play animation.

setTime

(
  • time
)

Set animation mixer time.

Parameters:

  • time Number

    Time in seconds.

stop

()

Stop animation playback.

update

(
  • delta
  • forceUpdate
)

Update animation state.

Parameters:

  • delta Number

    Time since last call.

  • forceUpdate Boolean

    If set true the mixer is updated even if it isnt playing.