build
@NotNull
Builds a timeline by sampling the transform channels at the supplied points. Each frame stores the time elapsed since the previous sample, starting at zero seconds. A discontinuity reported by any channel marks the frame to skip display interpolation.
var timeline = AnimationKeyframe.build(position, rotation, scale, rotationGlobal, sampleTimes);
Content copied to clipboard
Return
the sampled animation keyframe
Since
3.7.0
Parameters
position
position keyframe points
rotation
rotation keyframe points
scale
scale keyframe points
rotationGlobal
whether rotation is global
points
sorted sample times in seconds