Capítulo 575 de 859
A special type of an animated mesh with a simple interface for animation playback. It allows to playback just one animation without any transitions or fading between animation changes.
import { MorphAnimMesh } from 'three/addons/misc/MorphAnimMesh.js';
Constructor
| Signature |
|---|
| `new MorphAnimMesh( geometry : BufferGeometry, material : Material |
Properties
| Property | Description |
|---|---|
.activeAction : AnimationAction | The current active animation action. |
.mixer : AnimationMixer | The internal animation mixer. |
Methods
| Method | Description |
|---|---|
.playAnimation( label : string, fps : number ) | Plays the defined animation clip. The implementation assumes the animation clips are stored in Object3D#animations or the geometry. |
.setDirectionBackward() | Sets the animation playback direction to "backward". |
.setDirectionForward() | Sets the animation playback direction to "forward". |
.updateAnimation( delta : number ) | Updates the animations of the mesh. Must be called inside the animation loop. |