All Implemented Interfaces:
ConstJoltPhysicsObject, AutoCloseable, Comparable<JoltPhysicsObject>

public final class Stats extends JoltPhysicsObject
Statistics derived from a Shape. (native type: Shape::Stats)
  • Method Details

    • getNumTriangles

      public int getNumTriangles()
      Return the number in the shape, if any. The stats are unaffected. (native attribute: mNumTriangles)
      Returns:
      the number of triangles (≥0)
    • getSizeBytes

      public int getSizeBytes()
      Return the amount of memory used by the shape. The stats are unaffected. (native attribute: mSizeBytes)
      Returns:
      the number of bytes (≥0)