BoneMovement

Represents the transformation state of a single bone, including its position, scale, and rotation.

This record is used to calculate the final transformation of a bone after applying animations.

Since

1.15.2

Parameters

position

the local position of the bone

scale

the local scale of the bone

rotation

the final local rotation of the bone as a quaternion

rawRotation

the local rotation of the bone in Euler angles (degrees) before being converted to a quaternion

Constructors

Link copied to clipboard
constructor()
Creates a new BoneMovement with default (identity) transformations.

Functions

Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
@NotNull
open fun lerp(@NotNull to: @NotNull BoneMovement, alpha: Float, @NotNull dest: @NotNull BoneMovement): @NotNull BoneMovement
Linearly interpolates between this movement and another movement.
Link copied to clipboard
@NotNull
open fun set(@NotNull movement: @NotNull BoneMovement): @NotNull BoneMovement
Copies the values from another BoneMovement into this one.
Link copied to clipboard
abstract fun toString(): String