Interface ConstBroadPhaseLayerInterface
- All Superinterfaces:
Comparable<ConstJoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
BroadPhaseLayerInterface,MapObj2Bp
Read-only access to a
BroadPhaseLayerInterface. (native type: const
BroadPhaseLayerInterface)-
Method Summary
Modifier and TypeMethodDescriptionintgetBroadPhaseLayer(int objectLayer) Return the broad-phase layer for the specified object layer.intCount how many broad-phase layers there are.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, va
-
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)
-