Package com.github.stephengold.joltjni
Class AllHitRayCastBodyCollector
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.RayCastBodyCollector
com.github.stephengold.joltjni.AllHitRayCastBodyCollector
- All Implemented Interfaces:
ConstJoltPhysicsObject,AutoCloseable,Comparable<ConstJoltPhysicsObject>
Collect all results from a broad-phase ray cast. (native type:
AllHitCollisionCollector<RayCastBodyCollector>)-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.github.stephengold.joltjni.RayCastBodyCollector
forceEarlyOutMethods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, startCleaner, toString, va
-
Constructor Details
-
AllHitRayCastBodyCollector
public AllHitRayCastBodyCollector()Instantiate a default collector.
-
-
Method Details
-
get
Access the hit with the specified index.- Parameters:
index- (≥0, <numHits)- Returns:
- a new JVM object with the pre-existing native object assigned
-
getHits
Access all the hits as an array.- Returns:
- a new array of new JVM objects with pre-existing native objects assigned
-