Package com.github.stephengold.joltjni
Class CustomCollidePointCollector
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.CollidePointCollector
com.github.stephengold.joltjni.CustomCollidePointCollector
- All Implemented Interfaces:
ConstJoltPhysicsObject
,AutoCloseable
,Comparable<JoltPhysicsObject>
A customizable
CollidePointCollector
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
addHit
(long resultVa) Callback invoked (by native code) each time a new collision is detected.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
-
Constructor Details
-
CustomCollidePointCollector
public CustomCollidePointCollector()Instantiate a customizable collector.
-
-
Method Details
-
addHit
public abstract void addHit(long resultVa) Callback invoked (by native code) each time a new collision is detected.- Parameters:
resultVa
- the virtual address of aCollidePointResult
(not zero)
-