Ok, I've updated the source and EXE. It's the same download from above.
I fixed a few problems:
-Walking off the map no longer hurls you into outer space
- Walking when there are no walls no longer includes that vector in the collision check.
-Made a new map in MS3D. It's the same as the last one from CShop, except it's floor then catwalk, then another floor. I put a really cheesy ladder in it, but it thinks it's a ramp. (Box with a transparent ladder texture)
The number of checks has been dropped to 8 from 72.
I created a variable (checks I think) and that's all you have to change. The code calculates the rest. It's only accurate from 0 to 360 every 45 degrees. (360/8) The more checks you allow it to run, the more accurate it will be, but only at the angles of (360/numchecks) Play around with the code and see what works for your needs.
The default EXE is in 640x480 Exclusive at 16Bit. I get between 198 to 856 FPS when unlocked the sync rate and depending on what I'm looking at. Try changing around the exclusive/windowed and color depth and post your FPS.
Feel free to use this code in any of your programs. I made it cause BSPs made from CShop on my system get about 15 fps on the BSP of the level included as a .X here. This way I get 200+ fps. It's not as accurate as a BSP, but you can't walk through the object, just the sliding is wrong at times. The only thing I ask, is that you don't claim to have created the code. Give credit where credit is due.
-Kensupen