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 TypeMethodDescriptionintgetBroadPhaseLayer(int objectLayer) Return the broad-phase layer for the specified object layer.intCount how many broad-phase layers there are.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, vaMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods 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:
getBroadPhaseLayerin 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:
getNumBroadPhaseLayersin interfaceConstBroadPhaseLayerInterface- Returns:
- the count (≥0)
-