Interface ConstObjectVsBroadPhaseLayerFilter

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