interpolateRotation

open fun interpolateRotation(@NotNull floats: @NotNull FloatSortedSet)

Inserts shared keyframes where display interpolation would lose the sampled rotation path. Samples intervening Minecraft ticks and checks the resulting world-space quaternion path. Prefers splits that preserve the path and uses fewer frames when split costs are equal.


generator.interpolateRotation(frameTimes);

Since

1.15.2

Parameters

floats

the set of keyframe times to update