java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NarrowPhaseStat
- All Implemented Interfaces:
ConstJoltPhysicsObject
,AutoCloseable
,Comparable<JoltPhysicsObject>
Gather and report narrow-phase performance statistics.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Test whether the native library collects narrow-phase statistics.static void
Generate a report using the Jolt PhysicsTrace
function.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
-
Method Details
-
isCollecting
public static boolean isCollecting()Test whether the native library collects narrow-phase statistics. (native macro: JPH_TRACK_NARROWPHASE_STATS)- Returns:
true
if collecting statistics, otherwisefalse
-
sReportStats
public static void sReportStats()Generate a report using the Jolt PhysicsTrace
function.
-