Package com.github.stephengold.joltjni
Class CustomCastShapeCollector
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.CastShapeCollector
com.github.stephengold.joltjni.CustomCastShapeCollector
- All Implemented Interfaces:
- ConstJoltPhysicsObject,- AutoCloseable,- Comparable<JoltPhysicsObject>
A customizable 
CastShapeCollector.- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class com.github.stephengold.joltjni.JoltPhysicsObjectclose, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
- 
Constructor Details- 
CustomCastShapeCollectorpublic CustomCastShapeCollector()Instantiate a customizable collector.
 
- 
- 
Method Details- 
addHitpublic abstract void addHit(long resultVa) Callback invoked (by native code) each time a new shape-cast hit is detected.- Parameters:
- resultVa- the address of a- ShapeCastResult(not zero)
 
- 
resetpublic void reset()Reset the collector so it can be reused. Meant to be overridden.- Specified by:
- resetin class- CastShapeCollector
 
 
-