Reference documentation: (all you need is inside here) https://lodev.org/cgtutor/raycasting.html Thanks to Spidertest for his 3D Map Editor