AnimationGenerator

@ApiStatus.Internal
class AnimationGenerator

Generates animation data by interpolating keyframes and calculating bone movements.

This class processes raw animation points and generates smooth transitions for position, rotation, and scale. It handles the creation of intermediate frames to ensure fluid motion, especially for rotations.

Since

1.15.2

Functions

Link copied to clipboard
@NotNull
open fun generate(length: Float, @NotNull children: @NotNull List<BlueprintElement>, @NotNull pointMap: @NotNull Map<BoneName, BlueprintAnimator.AnimatorData>): @NotNull Map<BoneName, BlueprintAnimator>
Creates a map of blueprint animators from the provided animation data.
Link copied to clipboard
open fun interpolateRotation(@NotNull floats: @NotNull FloatSortedSet)
Inserts additional keyframes to smooth out large rotations.
Link copied to clipboard
open fun interpolateStep(@NotNull floats: @NotNull FloatSortedSet)
Inserts keyframes for step interpolation (non-continuous transitions).