KeyframesAnimation constructor
Parameters used to create this KeyframesAnimation.
Optional label of the KeyframesAnimation.
Optional input accessor index defined in the glTF, used to keep different TargetsAnimationsManager in sync if they're using the same input.
Keyframes Float32Array of the KeyframesAnimation. Could be omitted when used for a skin joint matrices animation.
Values Float32Array of the KeyframesAnimation to use for animation, mapped to the keyframes array. Could be omitted when used for a skin joint matrices animation.
Total duration of this animation, i.e. the last keyframes value.
glTF animation path to use, i.e. what component should be animated between 'translation', 'rotation', 'scale' and 'weights'. Could be omitted when used for a skin joint matrices animation.
glTF sampler interpolation to use, i.e. how the animated values should be computed. Default to LINEAR
.
Optional BufferBindingInput array to update a weight binding.
Callback to run after the animated value has been updated. Used for skin joints animations to update joint matrices.
Add a weight BufferBindingInput to the weightsBindingInputs array.
Weight BufferBindingInput.
Get a cubic spline interpolation value.
Current time value to use in the [0, 1] range.
Previous value to use for interpolation.
Next value to use for interpolation.
Previous output tangent value to use for interpolation.
Previous output tangent value to use for interpolation.
Update an Object3D transformation property or eventually the weightsBindingInputs based on the current time given, the path and interpolation used and the keyframes and values.
Helper class to use for transformation (position, scale or rotation) and morph targets weights animations (can also be used for skin joint matrices animations using only the
onAfterUpdate
callback).This class is not made to be used alone but should rather be handled by a TargetsAnimationsManager instance instead.