Two entities overlap

is there any functions that returns something when 2 entities overlap?

Roughly please check two object 's boundingboxes.

What do you mean by that? Can I possibly get an example?