Class Joint
java.lang.Object
net.ixdarklord.coolcatcanvas.api.client.armature.Joint
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]children()booleanWhether it has cubes or meshes of its own (not counting its children's).intindex()Its place inBakedArmature.joints(); parents always come before their children.name()intparent()The parent's index, or -1 for a root joint.org.joml.Vector3fcpivot()The point it turns around.org.joml.Vector3fcIts rotation at rest, before any animation.toString()
-
Constructor Details
-
Joint
-
-
Method Details
-
name
-
index
public int index()Its place inBakedArmature.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
-