Manages playback of GLTF animations.
The GLTF animations can be created in any 3d software that supports GLTF export like Blender. If animations from multiple files are loaded, they will be merged in a single root object and played together.
This plugin is made for playing, pausing, stopping, all the animations at once, while it is possible to play individual animations, it is not recommended.
To play individual animations, with custom choreography, use the animations property to get reference to the animation clips and actions. Create your own mixers and control the animation playback like in three.js
Speed of the animation. (not individual actions) This can be set to 0.
List of GLTF animations loaded with the models. The animations are standard threejs AnimationClip and their AnimationAction. Each set of actions also has a mixer.
If true, the animation time will be automatically incremented by the time delta, otherwise it has to be set manually between 0 and the animationDuration using
setTime. (default: true)
If true, the animation will be played automatically when the model(any model with animations) is loaded.
Damping for the drag animation, when animateOnDrag is true.
Axis to track for drag events, when animateOnDrag is true.
x will track horizontal drag,
y will track vertical drag.
Loop the complete animation. (not individual actions) This happens loopRepetitions times.
Number of times to loop the animation. (not individual actions) Only applicable when loopAnimations is true.
Damping for the scroll animation, when animateOnPage Scroll is true.
Damping for the scroll animation, when animateOnScroll is true.
Timescale for the animation. (not individual actions) If set to 0, it will be ignored.
Get the current animation duration (max of all animations). (read only)
Starts all the animations and returns a promise that resolves when all animations are done.
if true, will reset the animation to the start position when it ends.
play specific animations, otherwise play all animations. Note: the promise returned (if this is set) from this will resolve before time if the animations was ever paused, or converged mode is on in recorder.
This will play a single clip by name It might reset all other animations, this is a bug; https://codepen.io/repalash/pen/mdjgpvx
Generated using TypeDoc