Package com.github.stephengold.joltjni
Class BroadPhaseLayerInterface
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NonCopyable
com.github.stephengold.joltjni.BroadPhaseLayerInterface
- All Implemented Interfaces:
ConstBroadPhaseLayerInterface
,ConstJoltPhysicsObject
,AutoCloseable
,Comparable<JoltPhysicsObject>
- Direct Known Subclasses:
BroadPhaseLayerInterfaceTable
public abstract class BroadPhaseLayerInterface
extends NonCopyable
implements ConstBroadPhaseLayerInterface
Map object layers to broad-phase layers.
-
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 class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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
public int getBroadPhaseLayer(int objectLayer) Return the broad-phase layer for the specified object layer.- Specified by:
getBroadPhaseLayer
in interfaceConstBroadPhaseLayerInterface
- Parameters:
objectLayer
- the index of the object layer to query (≥0, <numObjectLayers)- Returns:
- the index of the corresponding broad-phase layer
-
getNumBroadPhaseLayers
public int getNumBroadPhaseLayers()Count how many broad-phase layers there are.- Specified by:
getNumBroadPhaseLayers
in interfaceConstBroadPhaseLayerInterface
- Returns:
- the count (≥0)
-