Package com.github.stephengold.joltjni
Interface PhysicsStepListener
- All Superinterfaces:
Comparable<ConstJoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
CustomPhysicsStepListener,VehicleConstraint
Interface to receive a callback before every physics simulation step.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonStep(long contextVa) Callback invoked (by native code) each time the system is stepped.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, va
-
Method Details
-
onStep
void onStep(long contextVa) Callback invoked (by native code) each time the system is stepped.- Parameters:
contextVa- the virtual address of thePhysicsStepListenerContext(not zero)
-