Package jolt.physics.collision
Class CastRayCollector
java.lang.Object
jolt.BaseJoltNative
jolt.SegmentedJoltNative
jolt.physics.collision.CollisionCollector
jolt.physics.collision.CastRayCollector
- All Implemented Interfaces:
JoltNative
CastRayCollector relies on preview features of the Java platform:
CastRayCollectorrefers to one or more preview APIs:MemoryAddress,MemorySegment,MemorySession,SegmentAllocator.
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic CastRayCollectorat(MemorySegmentPREVIEW segment) static CastRayCollectorat(MemorySessionPREVIEW alloc, MemoryAddressPREVIEW addr) voidgetContext(MemorySessionPREVIEW arena) floatstatic CastRayCollectorof(MemorySessionPREVIEW arena, CastRayCollectorFn impl) static CastRayCollectorof(SegmentAllocatorPREVIEW alloc) voidsetContext(TransformedShape context) booleanMethods inherited from class jolt.physics.collision.CollisionCollector
reset, resetEarlyOutFraction, updateEarlyOutFractionMethods inherited from class jolt.SegmentedJoltNative
addressMethods inherited from class jolt.BaseJoltNative
equals, hashCode
-
Method Details
-
at
-
at
-
of
-
of
-
getEarlyOutFraction
public float getEarlyOutFraction()- Specified by:
getEarlyOutFractionin classCollisionCollector
-
getContext
- Specified by:
getContextin classCollisionCollector
-
setContext
- Specified by:
setContextin classCollisionCollector
-
forceEarlyOut
public void forceEarlyOut()- Specified by:
forceEarlyOutin classCollisionCollector
-
shouldEarlyOut
public boolean shouldEarlyOut()- Specified by:
shouldEarlyOutin classCollisionCollector
-
CastRayCollectorwhen preview features are enabled.