Interface ConstVehicleCollisionTester
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
VehicleCollisionTester,VehicleCollisionTesterCastCylinder,VehicleCollisionTesterCastSphere,VehicleCollisionTesterRay
Read-only access to a
VehicleCollisionTester. (native type: const
VehicleCollisionTester)-
Method Summary
Modifier and TypeMethodDescriptionAccess the body filter.Access the broadphase-layer filter.intReturn the object layer used for collision detection when no filters are overridden.Access the object-layer filter.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
getBodyFilter
BodyFilter getBodyFilter()Access the body filter. The tester is unaffected.- Returns:
- a new JVM object with the pre-existing native object assigned, or
nullif none
-
getBroadPhaseLayerFilter
BroadPhaseLayerFilter getBroadPhaseLayerFilter()Access the broadphase-layer filter. The tester is unaffected.- Returns:
- a new JVM object with the pre-existing native object assigned, or
nullif none
-
getObjectLayer
int getObjectLayer()Return the object layer used for collision detection when no filters are overridden. The tester is unaffected.- Returns:
- the index of the layer
-
getObjectLayerFilter
ObjectLayerFilter getObjectLayerFilter()Access the object-layer filter. The tester is unaffected.- Returns:
- a new JVM object with the pre-existing native object assigned, or
nullif none
-