Package com.github.stephengold.joltjni
Class BroadPhaseLayerInterfaceMask
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NonCopyable
com.github.stephengold.joltjni.BroadPhaseLayerInterface
com.github.stephengold.joltjni.BroadPhaseLayerInterfaceMask
- All Implemented Interfaces:
ConstBroadPhaseLayerInterface,ConstJoltPhysicsObject,AutoCloseable,Comparable<JoltPhysicsObject>
Map object layers to broad-phase layers using bitmasks.
-
Constructor Summary
ConstructorsConstructorDescriptionBroadPhaseLayerInterfaceMask(int numBpLayers) Instantiate a default map with the specified capacity. -
Method Summary
Modifier and TypeMethodDescriptionconfigureLayer(int bpLayer, int groupsToInclude, int groupsToExclude) Configure the specified broad-phase layer.setBroadPhaseLayerName(int bpLayer, String name) If profiling is enabled, alter the name of the specified layer.Methods inherited from class com.github.stephengold.joltjni.BroadPhaseLayerInterface
getBroadPhaseLayer, getBroadPhaseLayerName, getNumBroadPhaseLayersMethods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, targetVaOrZero, 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, targetVaOrZero
-
Constructor Details
-
BroadPhaseLayerInterfaceMask
public BroadPhaseLayerInterfaceMask(int numBpLayers) Instantiate a default map with the specified capacity.- Parameters:
numBpLayers- the desired number of broad-phase layers (≥1)
-
-
Method Details
-
configureLayer
public BroadPhaseLayerInterfaceMask configureLayer(int bpLayer, int groupsToInclude, int groupsToExclude) Configure the specified broad-phase layer.- Parameters:
bpLayer- the index of the broad-phase layer to configure (≥0, < numBpLayers)groupsToInclude- a bitmask of groups to includegroupsToExclude- a bitmask of groups to exclude- Returns:
- the modified map, for chaining
-
setBroadPhaseLayerName
If profiling is enabled, alter the name of the specified layer. Otherwise this has no effect.- Parameters:
bpLayer- the index of the broad-phase layer to modify (≥0, < numBpLayers)name- the desired name (notnull)- Returns:
- the modified map, for chaining
-