Interface ConstObjectVsBroadPhaseLayerFilter
- All Superinterfaces:
Comparable<ConstJoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
ObjectVsBroadPhaseLayerFilter,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, va
-
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 a object layer (≥0, <numObjectLayers)bpLayer- the index of a broad-phase layer (≥0, <numBpLayers)- Returns:
- true if they should collide, otherwise false
-