Package com.github.stephengold.joltjni
Class CustomCastShapeBodyCollector
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.CastShapeBodyCollector
com.github.stephengold.joltjni.CustomCastShapeBodyCollector
- All Implemented Interfaces:
ConstJoltPhysicsObject
,AutoCloseable
,Comparable<JoltPhysicsObject>
A customizable
CastShapeBodyCollector
.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
-
Constructor Details
-
CustomCastShapeBodyCollector
public CustomCastShapeBodyCollector()Instantiate a customizable collector.
-
-
Method Details
-
addHit
public abstract void addHit(long resultVa) Callback invoked (by native code) each time a new shape-cast hit is detected.- Parameters:
resultVa
- the virtual address of aBroadPhaseCastResult
(not zero)
-
reset
public void reset()Reset the collector so it can be reused. Meant to be overridden.- Specified by:
reset
in classCastShapeBodyCollector
-