Package-level declarations

Defines animation keyframe values, interpolation points, and sampled timelines.

A kr.toxicity.model.api.animation.keyframe.KeyframeDatapoint represents a number or a Molang expression. A kr.toxicity.model.api.animation.keyframe.KeyframeCompileContext supplies animation time when that datapoint is compiled. A kr.toxicity.model.api.animation.keyframe.KeyframeRuntimeContext supplies query values when the compiled keyframe is evaluated.

A kr.toxicity.model.api.animation.keyframe.KeyframePoint associates a vector datapoint with its time, axis mapping, and interpolation settings. A kr.toxicity.model.api.animation.keyframe.KeyframeTimeline stores samples by index. Constant timelines evaluate samples when they are appended. Runtime timelines keep the compiled vectors so they can evaluate queries each time a sample is applied.

Example:


var datapoints = KeyframeDatapointVector.of(
    KeyframeDatapoint.of(2F), KeyframeDatapoint.ZERO, KeyframeDatapoint.ZERO);
var vector = datapoints.compile(new KeyframeCompileContext(0.5F));

var builder = KeyframeTimeline.constantBuilder(1);
builder.append(vector);
var timeline = builder.build();
var sample = timeline.apply(0, KeyframeRuntimeContext.empty(),
    new org.joml.Vector3f(), KeyframeOperator.SET);

Since

3.7.0

Types

Link copied to clipboard
A compiled scalar keyframe value that can be evaluated with a runtime context.
Link copied to clipboard
class KeyframeAxis : Record, Function<Vector3f, Vector3f>
A set of scalar transformations applied independently to the three components of a keyframe vector.
Link copied to clipboard
Supplies the animation time used to resolve time queries when compiling a keyframe datapoint.
Link copied to clipboard
An uncompiled scalar animation value represented by a number or a Molang expression.
Link copied to clipboard
Three uncompiled scalar datapoints representing one animation vector.
Link copied to clipboard
Applies evaluated keyframe components to a destination vector.
Link copied to clipboard
Represents a vector keyframe point at a specific time in an animation.
Link copied to clipboard
Provides values for runtime Molang queries during keyframe evaluation.
Link copied to clipboard
Stores sampled animation vectors by zero-based index.
Link copied to clipboard
A compiled vector with a scalar Keyframe for each component.