Detecting collisions between physics bodies