Raycasting questions

Blitz3D Forums/Blitz3D Programming/Raycasting questions

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

I've been working on a simple raycasting engine for a while now, and I ran into a slightly sticky math problem (how to find the exact position at which a ray first intersects one of the blocks). To find that out, I really only need to know this: what's the fastest way to find out which *side* the ray has struck?

Thanks in advance!