Controls: WASD..............Move player Arrow keys.......Look around The triangle turns blue when you point directly at it (as indicated by the crosshair)
I have had this algorithm for some time now, with the old version of this project available at https://scratch.mit.edu/projects/117078383/ I decided, now with a working 3D engine, it was time to update the project to add a demo of it. TO DISABLE BACK FACE CULLING, scroll down in the algorithms sprite and read the comment Note that this algorithm has been present in the main engine for some time now (you don't need to manually update it) Based on the algorithm detailed here: http://cg-dev.ltas.ulg.ac.be/inf/Fast%20MinimumStorage%20RayTriangle%20Intersection.pdf RELATED ALGORITHM: https://scratch.mit.edu/projects/147180422/ (Ray-sphere intersection)