Class DaeNode

java.lang.Object
com.hbm_m.client.loader.dae.DaeNode

public class DaeNode extends Object
A COLLADA scene node. Holds its base transforms, an optional baked geometry buffer and its children. Animation channels are queried from the active DaeAnimation by the node's COLLADA id, falling back to its display name.
  • Field Details

    • name

      public final String name
    • colladaId

      public String colladaId
      The COLLADA id attribute; animation channels reference this, not the name.
    • transforms

      public final List<DaeTransform> transforms
    • children

      public final List<DaeNode> children
    • mesh

      public DaeMesh mesh
    • texture

      public net.minecraft.resources.ResourceLocation texture
  • Constructor Details

    • DaeNode

      public DaeNode(String name)
  • Method Details

    • localMatrix

      public org.joml.Matrix4f localMatrix()
      Computes the local matrix in rest pose (no animation applied)
    • localMatrix

      public org.joml.Matrix4f localMatrix(float time, DaeAnimation animation)
      Computes the local matrix for the given animation time. Channels of the given clip override the base transform values; a "matrix" channel replaces the node transform entirely. When animation is null or the node has no channels, the rest pose is returned.