Basic collision detection.