Package com.github.stephengold.joltjni
Class AllHitCollideShapeCollector
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.CollideShapeCollector
com.github.stephengold.joltjni.AllHitCollideShapeCollector
- All Implemented Interfaces:
ConstJoltPhysicsObject
,AutoCloseable
,Comparable<JoltPhysicsObject>
Collect all results from a narrow-phase shape collision. (native type:
AllHitCollisionCollector<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
-
AllHitCollideShapeCollector
public AllHitCollideShapeCollector()Instantiate a default collector.
-
-
Method Details
-
get
Access the hit with the specified index. (native attribute: mHits)- Parameters:
index
- (≥0, <numHits)- Returns:
- a new JVM object with the pre-existing native object assigned
-
getHits
Access all the hits as an array. (native attribute: mHits)- Returns:
- a new list of new JVM objects with pre-existing native objects assigned
-
sort
public void sort()Sort the hits.
-