All Superinterfaces:
Comparable<JoltPhysicsObject>, ConstJoltPhysicsObject
All Known Implementing Classes:
Face

public interface ConstFace extends ConstJoltPhysicsObject
Read-only access to a Face. (native type: const SoftBodySharedSettings::Face)
  • Method Details

    • getMaterialIndex

      int getMaterialIndex()
      Return the material index. The face is unaffected.
      Returns:
      the index of the material in the body's shared settings (≥0)
    • getVertex

      int getVertex(int indexInFace)
      Return the mesh vertex at the specified corner. The face is unaffected.
      Parameters:
      indexInFace - which corner of the face (0 or 1 or 2)
      Returns:
      the mesh index of the vertex (≥0)
    • isDegenerate

      boolean isDegenerate()
      Test whether the face is degenerate. The face is unaffected.
      Returns:
      true if degenerate, otherwise false