🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Advertisement

Latest VB6VB2010 Activity

how use RayCasting?

I guess the bug is something like missing or skipping an intersection with the level, thus the question about the level data.

Assuming you use a regular grid, where some cells are solid and others are empty, DDA is usually used to find intersections of a ray with grid edges in front to back order.

He…

4,086 views
Advertisement
Advertisement
Advertisement