What is the easiest way to do collisions in a 2d environment without
relying on the graphics render?
I'm programming a DooM clone, and I have it set up to render
perpendicular planes as walls, ie. it is given 2 2d points of the
endpoints, and renders a plane between them to certain heights.
The current method I'm using is to limit the players X position and Y
position to the outer bounding walls. I have checked out using the
surface normals and the dot product, but that is complicated and seems
to be overkill. Does anyone know the best way to do this?