Simple collision detection.