Package com.github.stephengold.joltjni
Class AnyHitCollideShapeCollector
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.CollideShapeCollector
com.github.stephengold.joltjni.AnyHitCollideShapeCollector
- All Implemented Interfaces:
ConstJoltPhysicsObject
,AutoCloseable
,Comparable<JoltPhysicsObject>
Collect one result from a narrow-phase collide-shape query. (native type:
AnyHitCollisionCollector<CollideShapeCollector>
)-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
-
Constructor Details
-
AnyHitCollideShapeCollector
public AnyHitCollideShapeCollector()Instantiate a default collector.
-
-
Method Details
-
getHit
Access the result of the latest query. (native field: mHit)- Returns:
- a new JVM object with the pre-existing native object assigned
-
hadHit
public boolean hadHit()Test whether the latest query resulted in a hit. The collector is unaffected.- Returns:
true
if there was a hit, otherwisefalse
-