Package jolt.physics.collision
Class CollisionCollector
java.lang.Object
jolt.BaseJoltNative
jolt.SegmentedJoltNative
jolt.physics.collision.CollisionCollector
- All Implemented Interfaces:
JoltNative
- Direct Known Subclasses:
CastRayCollector,CastShapeBodyCollector,CollidePointCollector,CollideShapeBodyCollector,CollideShapeCollector,RayCastBodyCollector,TransformedShapeCollector
CollisionCollector relies on preview features of the Java platform:
CollisionCollectorrefers to one or more preview APIs:MemorySegment,MemorySession.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
-
Field Summary
Fields inherited from class jolt.SegmentedJoltNative
handle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidabstract TransformedShapegetContext(MemorySessionPREVIEW arena) abstract floatvoidreset()voidresetEarlyOutFraction(float fraction) abstract voidsetContext(TransformedShape context) abstract booleanvoidupdateEarlyOutFraction(float fraction) Methods inherited from class jolt.SegmentedJoltNative
addressMethods inherited from class jolt.BaseJoltNative
equals, hashCode
-
Constructor Details
-
CollisionCollector
-
-
Method Details
-
reset
public void reset() -
getEarlyOutFraction
public abstract float getEarlyOutFraction() -
getContext
-
setContext
-
updateEarlyOutFraction
public void updateEarlyOutFraction(float fraction) -
resetEarlyOutFraction
public void resetEarlyOutFraction(float fraction) -
forceEarlyOut
public abstract void forceEarlyOut() -
shouldEarlyOut
public abstract boolean shouldEarlyOut()
-
CollisionCollectorwhen preview features are enabled.