Class ArmatureFrame
java.lang.Object
net.ixdarklord.coolcatcanvas.api.client.armature.ArmatureFrame
An armature posed for one frame: where every joint is, which are shown, and how they are tinted. Renderers draw it; code
that hangs things on an armature or spawns particles from it reads joint and point places from it.
Joint matrices take model pixels at rest to model pixels posed. modelToWorld() goes on from there to the
world (blocks), as last drawn.
-
Method Summary
Modifier and TypeMethodDescriptionarmature()booleanglows(int index) Whether a joint is drawn at full brightness whatever the light.org.joml.Matrix4fcjoint(int index) @Nullable org.joml.Matrix4fcorg.joml.Matrix4fcFrom model pixels to the world, as of the last update.org.joml.Matrix3fnormal(int index) The matrix's normal part, for lighting.intpointJoint(String name) The joint a point (or joint) of that name moves with, or -1.@Nullable org.joml.Matrix4fpointMatrix(String name) Where a point (or, if there is no point by that name, a joint's pivot) is, as a matrix in model pixels: its position, and its axes turned as it is.props()The.objmodels carried this frame: the armature's own and the animator's.inttint(int index) The ARGB colour a joint's faces are multiplied by (white when untinted).booleanvisible(int index) @Nullable org.joml.Vector3fworldPosition(String name) Where a point or joint pivot is in the world, in blocks; null if the armature has neither.
-
Method Details
-
armature
-
joint
public org.joml.Matrix4fc joint(int index) -
joint
-
normal
public org.joml.Matrix3f normal(int index) The matrix's normal part, for lighting. -
visible
public boolean visible(int index) -
tint
public int tint(int index) The ARGB colour a joint's faces are multiplied by (white when untinted). -
glows
public boolean glows(int index) Whether a joint is drawn at full brightness whatever the light. -
props
-
pointJoint
The joint a point (or joint) of that name moves with, or -1. -
modelToWorld
public org.joml.Matrix4fc modelToWorld()From model pixels to the world, as of the last update. -
pointMatrix
Where a point (or, if there is no point by that name, a joint's pivot) is, as a matrix in model pixels: its position, and its axes turned as it is. Null if the armature has neither. -
worldPosition
Where a point or joint pivot is in the world, in blocks; null if the armature has neither.
-