1/2 Ray Caster made in Processing

preview_player
Показать описание
I forgot to show this in the video but the grid can be changed and the walls for the raycasting will be created effectively for all of them.

I had put it into mine to make it work and made the walls dynamically change to grid that you can change by changing the data in the grid array.

Рекомендации по теме
Комментарии
Автор

I have made a raycaster in cpp with sfml but it was not based on grid and had a hard time getting the ray line segment intersection formula to work

redstoneninja