Interface ConstObjectVsBroadPhaseLayerFilter

All Superinterfaces:
AutoCloseable, Comparable<JoltPhysicsObject>, ConstJoltPhysicsObject
All Known Implementing Classes:
ObjectVsBroadPhaseLayerFilter, ObjectVsBroadPhaseLayerFilterTable, ObjVsBpFilter

public interface ConstObjectVsBroadPhaseLayerFilter extends ConstJoltPhysicsObject
Read-only access to an ObjectVsBroadPhaseLayerFilter. (native type: const ObjectVsBroadPhaseLayerFilter)
  • 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:
      true if they should collide, otherwise false