[name]

An AnimationClip is a reusable set of Tracks that represent an animation.

Constructor

[name]( [page:String name], [page:Number duration], tracks )

Properties

[property:String uuid]

[property:String name]

[property:Number duration]

.tracks

Methods

[method:null resetDuration]()

Resets duration by scanning all tracks in the clip.

[method:AnimationClip trim]()

Trims all tracks to the clip's duration.

[method:AnimationClip optimize]()

Optimizes each track.

Static Methods

[method:AnimationClip parse]( [page:Object json] )

json -- JSON object

[method:Object toJSON]( [page:AnimationClip clip] )

clip -- AnimationClip

[method:AnimationClip CreateFromMorphTargetSequence]( [page:String name], [page:Array morphTargetSequence], [page:Number fps], [page:Boolean noLoop] )

name -- Name for the new clip
morphTargetSequence -- Array of morph targets
fps -- Number of frames per second
noLoop -- Whether looping occurs automatically.

[method:AnimationClip parseAnimation]( [page:Object animation], [page:Array bones] )

Parses the animation.hierarchy format and returns an AnimationClip.

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]