java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.Stats
- All Implemented Interfaces:
ConstJoltPhysicsObject,AutoCloseable,Comparable<JoltPhysicsObject>
Statistics derived from a
Shape. (native type: Shape::Stats)-
Method Summary
Modifier and TypeMethodDescriptionintReturn the number in the shape, if any.intReturn the amount of memory used by the shape.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
-
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)
-