don't care much about the rest of the code, my main problem is whether my ray is defined correctly in that second line.
ray is casted from very far to the right to very far left, i've set the borders which are the wall objects on the sides of the map as child objects of one empty object, all of them including
the parent have the "borders" layer, and the all child objects have colliders.
i tried visualizing the layer but there's no debug.draw or gizmos.draw that takes the same paremeters as raycast (origin, direction,distance), they instead take (origin, direction, color) or (origin,end), so i couldn't exactly visualize the exact ray i'm making.
i don't think that matters anw bc the ray is, as far as i know, stretching from 1000 back to 1000 units forward, so it should cut through something.
what am i missing ??