Collision detection in x-dimension