build

@NotNull
open fun build(@NotNull position: @NotNull List<KeyframePoint>, @NotNull rotation: @NotNull List<KeyframePoint>, @NotNull scale: @NotNull List<KeyframePoint>, rotationGlobal: Boolean, @NotNull points: @NotNull FloatSortedSet): @NotNull AnimationKeyframe

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);

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