pointA | One corner of the rectangle. |
pointB | Diagonally opposite corner of the rectangle. |
layerMask | Filter to check objects only on specific layers. |
minDepth | Only include objects with a Z coordinate (depth) greater than this value. |
maxDepth | Only include objects with a Z coordinate (depth) less than this value. |
Check if a collider falls within a rectangular area.