hi, i am coding a 2d game where i click on the screen and the unit moves there.
but how can i check if theres a nonwalkable area beetween the starting and ending point ? i mean, how can i check if the line from starting to ending point crosses the polygon which marks my non walkable terrain.
i read a lot about selection but glupickmatrix only lets me define a cube not a line
how can this be done
thanks



