Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface 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. For an overview of the different elements of the three.js animation system see the "Animation System" article in the "Next Steps" section of the manual.

Hierarchy

Index

Constructors

constructor

Properties

time

time: number

The global mixer time (in seconds; starting with 0 on the mixer's creation).

default

0

timeScale

timeScale: number

A scaling factor for the global .time. Note: Setting the mixer's timeScale to 0 and later back to 1 is a possibility to pause/unpause all actions that are controlled by this mixer.

default

1.0

Methods

addEventListener

clipAction

dispatchEvent

  • dispatchEvent(event: Event): void

existingAction

getRoot

hasEventListener

removeEventListener

setTime

  • Sets the global mixer to a specific time and updates the animation accordingly. This is useful when you need to jump to an exact time in an animation. The input parameter will be scaled by the mixer's .timeScale.

    Parameters

    • timeInSeconds: number

    Returns I3JS.AnimationMixer

stopAllAction

uncacheAction

uncacheClip

uncacheRoot

update

Generated using TypeDoc