Ok, I simplified it too much. You are right, there are the blocks. But here's the real deal: basic step width is one block length. Now, as soon as your ray has passed by one or more blocks, check if the passed blocks where walls. If they are walls then go one step back and do the binary search within this step length.
Raycasting, but not sending a ray step by step?
Blitz3D Forums/Blitz3D Programming/Raycasting, but not sending a ray step by step?The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.