Preliminary collision detection.