Class Track

java.lang.Object
net.ixdarklord.coolcatcanvas.internal.client.armature.anim.Track

public final class Track extends Object
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.
  • Constructor Details

  • Method Details

    • bendShaped

      public Track 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

      public void sample(double time, ArmatureContext context, float[] out)
      The three values at a time, into out[0..2].