Capítulo 287 de 859
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.
0 on the mixer's creation).Constructor
| Signature |
|---|
new AnimationMixer( root : Object3D ) |
Properties
| Property | Description |
|---|---|
.time : number | The global mixer time (in seconds; starting with 0 on the mixer's creation). |
.timeScale : number | A scaling factor for the global time. |
Methods
| Method | Description |
|---|---|
| `.clipAction( clip : AnimationClip | string, optionalRoot : Object3D, blendMode : NormalAnimationBlendMode |
| `.existingAction( clip : AnimationClip | string, optionalRoot : Object3D ) : AnimationAction` |
.getRoot() : Object3D | Returns this mixer's root object. |
.setTime( time : number ) : AnimationMixer | Sets the global mixer to a specific time and updates the animation accordingly. |
.stopAllAction() : AnimationMixer | Deactivates all previously scheduled actions on this mixer. |
| `.uncacheAction( clip : AnimationClip | string, optionalRoot : Object3D )` |
.uncacheClip( clip : AnimationClip ) | Deallocates all memory resources for a clip. Before using this method make sure to call AnimationAction#stop for all related actions. |
.uncacheRoot( root : Object3D ) | Deallocates all memory resources for a root object. Before using this method make sure to call AnimationAction#stop for all related actions or alternatively [AnimationMix… |
.update( deltaTime : number ) : AnimationMixer | Advances the global mixer time and updates the animation. |