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.
Type of the value being animated. Could be omitted when used for a skin joint matrices animation.
Input value being animated. 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 .
Callback to run after the animated value has been updated. Used for skin joints animations to update joint matrices.
Add a BufferBindingInput to the inputValue array. Use for weights animations.
BufferBindingInput to add.
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 the inputValue based on the current time given, the path, type 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
onAfterUpdatecallback).This class is not made to be used alone but should rather be handled by a TargetsAnimationsManager instance instead.