AnimationProgress

Represents the state of an animation at a specific keyframe.

This interface defines how to apply the keyframe's transformation to a bone's movement.

Since

2.0.0

Inheritors

Types

Link copied to clipboard
An implementation of AnimationProgress that represents an empty keyframe.

Properties

Link copied to clipboard
An empty animation progress that applies no transformation.

Functions

Link copied to clipboard
@NotNull
abstract fun animate(@NotNull movement: @NotNull BoneMovement, @NotNull dest: @NotNull BoneMovement): @NotNull BoneMovement
Applies this keyframe's animation to a bone's movement.
Link copied to clipboard
abstract fun compareTo(p: T): Int
open fun compareTo(@NotNull o: @NotNull Timed): Int
Link copied to clipboard
@NotNull
open fun empty(time: Float): @NotNull AnimationProgress
Creates an empty animation progress at a specific time.
Link copied to clipboard
@NotNull
open fun emptyStorage(time: Float): @NotNull TimedStorage<AnimationProgress>
Creates an empty timed storage with a start and end keyframe.
Link copied to clipboard
abstract fun globalRotation(): Boolean
Checks if the rotation in this keyframe should be applied globally.
Link copied to clipboard
abstract fun skipInterpolation(): Boolean
Checks if interpolation should be skipped after this keyframe.
Link copied to clipboard
abstract fun time(): Float
Gets time
Link copied to clipboard
@NotNull
open fun toEmpty(): @NotNull AnimationProgress
Converts this progress to empty progress at the same time.