Collision detection part 1.