Class Joint

java.lang.Object
net.ixdarklord.coolcatcanvas.api.client.armature.Joint

public final class Joint extends Object
One joint of an armature: a Blockbench group or a Bedrock bone. Positions are in model pixels (16 to a block) with Y up and the model facing north (-Z), as Blockbench shows it; rotations are radians.
  • Constructor Details

    • Joint

      public Joint(String name, int index, int parent, org.joml.Vector3fc pivot, org.joml.Vector3fc rest)
  • Method Details

    • name

      public String name()
    • index

      public int index()
      Its place in BakedArmature.joints(); parents always come before their children.
    • parent

      public int parent()
      The parent's index, or -1 for a root joint.
    • pivot

      public org.joml.Vector3fc pivot()
      The point it turns around.
    • restRotation

      public org.joml.Vector3fc restRotation()
      Its rotation at rest, before any animation.
    • children

      public int[] children()
    • hasGeometry

      public boolean hasGeometry()
      Whether it has cubes or meshes of its own (not counting its children's).
    • toString

      public String toString()
      Overrides:
      toString in class Object