Package com.github.stephengold.joltjni
Class ClosestHitCastShapeCollector
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.CastShapeCollector
com.github.stephengold.joltjni.ClosestHitCastShapeCollector
- All Implemented Interfaces:
- ConstJoltPhysicsObject,- AutoCloseable,- Comparable<JoltPhysicsObject>
Collect the closest result from a narrow-phase shape-cast query. (native
 type: 
ClosestHitCollisionCollector<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- 
ClosestHitCastShapeCollectorpublic ClosestHitCastShapeCollector()Instantiate a default collector.
 
- 
- 
Method Details- 
getHitAccess the result of the latest query. (native field: mHit)- Returns:
- a new JVM object with the pre-existing native object assigned
 
- 
hadHitpublic boolean hadHit()Test whether the latest query resulted in a hit. The collector is unaffected.- Returns:
- trueif there was a hit, otherwise- false
 
- 
resetpublic void reset()Reset the collector so it can be reused.- Specified by:
- resetin class- CastShapeCollector
 
 
-