Package com.github.stephengold.joltjni
Class ObjectVsBroadPhaseLayerFilter
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NonCopyable
com.github.stephengold.joltjni.ObjectVsBroadPhaseLayerFilter
- All Implemented Interfaces:
ConstJoltPhysicsObject,ConstObjectVsBroadPhaseLayerFilter,AutoCloseable,Comparable<ConstJoltPhysicsObject>
- Direct Known Subclasses:
ObjVsBpFilter
public abstract class ObjectVsBroadPhaseLayerFilter
extends NonCopyable
implements ConstObjectVsBroadPhaseLayerFilter
Filter collisions between objects and broad-phase layers.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldCollide(int objLayer, int bpLayer) Test whether the specified layers should collide.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, startCleaner, 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, va
-
Method Details
-
shouldCollide
public boolean shouldCollide(int objLayer, int bpLayer) Test whether the specified layers should collide.- Specified by:
shouldCollidein interfaceConstObjectVsBroadPhaseLayerFilter- Parameters:
objLayer- the index of a object layer (≥0, <numObjectLayers)bpLayer- the index of a broad-phase layer (≥0, <numBpLayers)- Returns:
- true if they should collide, otherwise false
-