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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
addHit
(long resultVa) Callback invoked (by native code) each time a new shape-cast hit 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
-
CustomCastShapeCollector
public CustomCastShapeCollector()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 address of aShapeCastResult
(not zero)
-