Interface ConstObjectVsBroadPhaseLayerFilter
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
ObjectVsBroadPhaseLayerFilter,ObjectVsBroadPhaseLayerFilterTable,ObjVsBpFilter
Read-only access to an
ObjectVsBroadPhaseLayerFilter. (native type:
const ObjectVsBroadPhaseLayerFilter)-
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldCollide(int objLayer, int bpLayer) Test whether the specified layers should collide.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
shouldCollide
boolean shouldCollide(int objLayer, int bpLayer) Test whether the specified layers should collide. The filter is unaffected.- Parameters:
objLayer- the index of an object layer (≥0, <numObjectLayers)bpLayer- the index of a broad-phase layer (≥0, <numBpLayers)- Returns:
trueif they should collide, otherwisefalse
-