Class JointMask

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

public final class JointMask extends Object
The joints a layer may move. Masks let one layer wave the arms while another walks the legs, each with its own clip.
JointMask.of("arm_left", "arm_right")      // these joints and everything on them
JointMask.only("head")                     // this joint alone, not its children
JointMask.all().except("tail")             // everything but the tail and what hangs from it
  • Method Details

    • all

      public static JointMask all()
      Every joint.
    • of

      public static JointMask of(String... joints)
      These joints and every joint below them.
    • only

      public static JointMask only(String... joints)
      These joints alone.
    • except

      public JointMask except(String... joints)
      This mask without these joints and what is below them.
    • resolve

      public boolean[] resolve(BakedArmature armature)
      Whether each joint of the armature is in the mask.