Interface ConstBroadPhaseLayerInterface
- All Superinterfaces:
Comparable<JoltPhysicsObject>
,ConstJoltPhysicsObject
- All Known Implementing Classes:
BroadPhaseLayerInterface
,BroadPhaseLayerInterfaceTable
Read-only access to a
BroadPhaseLayerInterface
. (native type: const
BroadPhaseLayerInterface)-
Method Summary
Modifier and TypeMethodDescriptionint
getBroadPhaseLayer
(int objectLayer) Return the broad-phase layer for the specified object layer.int
Count how many broad-phase layers there are.Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
getBroadPhaseLayer
int getBroadPhaseLayer(int objectLayer) Return the broad-phase layer for the specified object layer.- Parameters:
objectLayer
- the index of the object layer to query (≥0, <numObjectLayers)- Returns:
- the index of the corresponding broad-phase layer
-
getNumBroadPhaseLayers
int getNumBroadPhaseLayers()Count how many broad-phase layers there are.- Returns:
- the count (≥0)
-