Interface ConstMeshShapeSettings

All Superinterfaces:
AutoCloseable, Comparable<JoltPhysicsObject>, ConstJoltPhysicsObject, ConstSerializableObject, ConstShapeSettings
All Known Implementing Classes:
MeshShapeSettings

public interface ConstMeshShapeSettings extends ConstShapeSettings
Read-only access to a MeshShapeSettings object. (native type: const MeshShapeSettings)
  • Method Details

    • countMaterials

      int countMaterials()
      Count the physics materials. The settings are unaffected.
      Returns:
      the count (≥0)
    • countTriangles

      int countTriangles()
      Count the triangles in the mesh. The settings are unaffected.
      Returns:
      the count (≥0)
    • countTriangleVertices

      int countTriangleVertices()
      Count the vertices in the mesh. The settings are unaffected.
      Returns:
      the count (≥0)
    • getActiveEdgeCosThresholdAngle

      float getActiveEdgeCosThresholdAngle()
      Return the cosine of the active-edge threshold angle. The settings are unaffected.
      Returns:
      the cosine
    • getBuildQuality

      EBuildQuality getBuildQuality()
      Return the build quality. The settings are unaffected.
      Returns:
      an enum value (not null)
    • getMaxTrianglesPerLeaf

      int getMaxTrianglesPerLeaf()
      Return the maximum number of triangles per leaf. The settings are unaffected.
      Returns:
      the maximum number
    • getPerTriangleUserData

      boolean getPerTriangleUserData()
      Test whether each triangle will include user data. The settings are unaffected.
      Returns:
      true if per-triangle data is included, otherwise false
    • getTriangleVertex

      Float3 getTriangleVertex(int vertexIndex)
      Copy the specified vertex. The settings are unaffected.
      Parameters:
      vertexIndex - the index of the vertex to copy (≥0)
      Returns:
      a new vector
    • getTriangleVertices

      VertexList getTriangleVertices()
      Copy the vertex list. The settings are unaffected.
      Returns:
      a new object