Class Track
java.lang.Object
net.ixdarklord.coolcatcanvas.internal.client.armature.anim.Track
The keyframes of one channel (rotation, position or scale) of one joint, three values each, as the file wrote them:
rotations in degrees and positions in pixels, in Bedrock's axes. Values may be Molang, read when sampled.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final recordOne keyframe. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis track as a bend: amount, then direction.booleanisEmpty()floatlastTime()The last keyframe's time, for clips that don't say how long they are.voidsample(double time, ArmatureContext context, float[] out) The three values at a time, intoout[0..2].
-
Constructor Details
-
Track
-
-
Method Details
-
bendShaped
This track as a bend: amount, then direction. A keyframe written as one value (read as the same expression on all three axes) is the amount alone, bending forward. -
isEmpty
public boolean isEmpty() -
lastTime
public float lastTime()The last keyframe's time, for clips that don't say how long they are. -
sample
The three values at a time, intoout[0..2].
-