Package com.github.stephengold.joltjni
Class CustomCollideShapeBodyCollector
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.CollideShapeBodyCollector
com.github.stephengold.joltjni.CustomCollideShapeBodyCollector
- All Implemented Interfaces:
- ConstJoltPhysicsObject,- AutoCloseable,- Comparable<JoltPhysicsObject>
A customizable 
CollideShapeBodyCollector.- 
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- 
CustomCollideShapeBodyCollectorpublic CustomCollideShapeBodyCollector()Instantiate a customizable collector.
 
- 
- 
Method Details- 
addHitpublic abstract void addHit(int bodyId) Callback invoked (by native code) each time a new collision is detected.- Parameters:
- bodyId- the body ID
 
- 
resetpublic void reset()Reset the collector so it can be reused. Meant to be overridden.- Specified by:
- resetin class- CollideShapeBodyCollector
 
 
-