collision detection does not work right

probably a unity a problem, does not detect when moving in a straight
line into collision