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…

5,124 views
Advertisement
Advertisement
Advertisement
Advertisement