Package com.github.stephengold.joltjni
Class CustomCastRayCollector
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.CastRayCollector
com.github.stephengold.joltjni.CustomCastRayCollector
- All Implemented Interfaces:
 ConstJoltPhysicsObject,AutoCloseable,Comparable<JoltPhysicsObject>
A customizable 
CastRayCollector.- 
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
- 
CustomCastRayCollector
public CustomCastRayCollector()Instantiate a customizable collector. 
 - 
 - 
Method Details
- 
addHit
public abstract void addHit(long resultVa) Callback invoked (by native code) each time a new raycast hit is detected.- Parameters:
 resultVa- the address of aRayCastResult(not zero)
 - 
reset
public void reset()Reset the collector so it can be reused. Meant to be overridden.- Specified by:
 resetin classCastRayCollector
 
 -