Package com.github.stephengold.joltjni
Class CustomPhysicsStepListener
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.CustomPhysicsStepListener
- All Implemented Interfaces:
PhysicsStepListener,ConstJoltPhysicsObject,AutoCloseable,Comparable<ConstJoltPhysicsObject>
public abstract class CustomPhysicsStepListener
extends JoltPhysicsObject
implements PhysicsStepListener
A customizable
PhysicsStepListener.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidonStep(long contextVa) Callback invoked (by native code) each time the system is stepped.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, startCleaner, toString, vaMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, va
-
Constructor Details
-
CustomPhysicsStepListener
public CustomPhysicsStepListener()Instantiate a customizable listener.
-
-
Method Details
-
onStep
public abstract void onStep(long contextVa) Callback invoked (by native code) each time the system is stepped.- Specified by:
onStepin interfacePhysicsStepListener- Parameters:
contextVa- the virtual address of thePhysicsStepListenerContext(not zero)
-