Creates eventDispatcher object. It needs to be call with '.call' to add the functionality to an object.
The global mixer time (in seconds; starting with 0 on the mixer's creation).
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.
Adds a listener to an event type.
The type of event to listen to.
The that gets called when the event is fired.
If an action fitting the clip and root parameters doesn't yet exist, it will be created by this method. Calling this method several times with the same clip and root parameters always returns the same clip instance.
Returns an AnimationAction for the passed clip, optionally using a root object different from the mixer's default root. The first parameter can be either an AnimationClip object or the name of an AnimationClip.
Fire an event type.
The first parameter can be either an AnimationClip object or the name of an AnimationClip.
Returns an existing AnimationAction for the passed clip, optionally using a root object different from the mixer's default root.
Returns this mixer's root object.
Checks if listener is added to an event type.
The type of event to listen to.
The that gets called when the event is fired.
Removes a listener from an event type.
The type of the listener that gets removed.
The listener that gets removed.
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.
Deactivates all previously scheduled actions on this mixer.
Deallocates all memory resources for an action. Before using this method make sure to call AnimationAction.stop() to deactivate the action.
Deallocates all memory resources for a clip. Before using this method make sure to call AnimationAction.stop() for all related actions.
Deallocates all memory resources for a root object. Before using this method make sure to call AnimationAction.stop() for all related actions.
Advances the global mixer time and updates the animation. This is usually done in the render loop, passing clock.getDelta scaled by the mixer's .timeScale).
Generated using TypeDoc
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.