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, wich is an array an of animation clips.

Constructor

AnimationMixer

(
  • root
)

Parameters:

Item Index

Methods

createActions

(
  • actions
)

Create actions from array of animations.

Parameters:

  • actions 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.