collision detection all directions