Package kr.toxicity.model.api.animation
Class AnimationKeyframe.Builder
java.lang.Object
kr.toxicity.model.api.animation.AnimationKeyframe.Builder
- Enclosing class:
AnimationKeyframe
Builder for
AnimationKeyframe.
This builder allows for efficient population of keyframe data using primitive arrays.
- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescription@NotNull AnimationKeyframebuild()Builds theAnimationKeyframe.voidwrite(float time, @NotNull org.joml.Vector3f position, @NotNull org.joml.Vector3f scale, @NotNull org.joml.Vector3f rotation, boolean skipInterpolation) Writes a keyframe data point.
-
Method Details
-
write
public void write(float time, @NotNull @NotNull org.joml.Vector3f position, @NotNull @NotNull org.joml.Vector3f scale, @NotNull @NotNull org.joml.Vector3f rotation, boolean skipInterpolation) Writes a keyframe data point.- Parameters:
time- the time of the keyframeposition- the position vectorscale- the scale vectorrotation- the rotation vectorskipInterpolation- whether to skip interpolation for this keyframe- Since:
- 2.0.0
-
build
Builds theAnimationKeyframe.- Returns:
- the created keyframe collection
- Since:
- 2.0.0
-