>>when two rectangles, or a ball and a rectangle, overlap.

a ball would still be a rect