VectorPoint

Represents a keyframe point in an animation timeline.

This record holds the value of a vector (position, rotation, or scale) at a specific time, along with interpolation information to create smooth transitions between keyframes.

Since

1.15.2

Parameters

function

a function to get the vector value, which may be dynamic (e.g., based on Molang expressions)

time

the time of this keyframe in seconds

bezier

the bezier curve configuration for interpolation, if applicable

interpolator

the interpolation method to use (e.g., linear, bezier, catmull-rom)

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
Configuration for bezier curve interpolation.

Properties

Link copied to clipboard
An empty, default vector point at time 0 with linear interpolation.

Functions

Link copied to clipboard
abstract fun compareTo(p: T): Int
open fun compareTo(@NotNull o: @NotNull Timed): Int
Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun isContinuous(): Boolean
Checks if the interpolation method for this point is continuous.
Link copied to clipboard
abstract fun time(): Float
Gets time
Link copied to clipboard
abstract fun toString(): String
Link copied to clipboard
@NotNull
open fun vector(): @NotNull Vector3f
Gets the vector value at this keyframe's specific time.
@NotNull
open fun vector(time: Float): @NotNull Vector3f
Gets the vector value at a specific time, evaluating the function if necessary.