Note: Instead of instantiating an AnimationClip directly with the constructor, you can use one of its static methods to create AnimationClips: from JSON (.parse), from morph target sequences (.CreateFromMorphTargetSequence,e .CreateClipsFromMorphTargetSequences) or frome animation hierarchies (.parseAnimation) - if your model doesn't already hold AnimationClips in its geometry's animations array.
A name for this clip.
The duration of this clip (in seconds). If a negative value is passed, the duration will be calculated from the passed tracks array.
an array of KeyframeTracks.
The duration of this clip (in seconds). This can be calculated from the .tracks array via .resetDuration.
A name for this clip. A certain clip can be searched via .findByName.
An array containing a KeyframeTrack for each property that are animated by this clip.
The UUID of this clip instance. It gets automatically assigned and shouldn't be edited.
Note: The fps parameter is required, but the animation speed can be overridden in an AnimationAction via animationAction.setDuration.
Returns a new AnimationClip from the passed morph targets array of a geometry, taking a name and the number of frames per second.
Returns a copy of this clip.
Searches for an AnimationClip by name, taking as its first parameter either an array of AnimationClips, or a mesh or geometry that contains an array named "animations".
Optimizes each track by removing equivalent sequential keys (which are common in morph target sequences).
Parses a JSON representation of a clip and returns an AnimationClip.
Parses the animation.hierarchy format and returns an AnimationClip.
Sets the .duration of the clip to the duration of its longest KeyframeTrack.
Returns a JSON object representing the serialized animation clip.
Takes an AnimationClip and returns a JSON object.
Trims all tracks to the clip's duration.
Performs minimal validation on each track in the clip. Returns true if all tracks are valid.
Generated using TypeDoc
An AnimationClip is a reusable set of keyframe tracks which represent an animation. 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.