Problem Statement
Ray Casting is heavily used in video games to generate 3D perspectives by analysing the volume of light interacting with each object. Another cool use case would be to incorporate this with a neural network to facilitate a self driving particle that can infer nearby obstacles using ray tracing.
I implemented a simple 2D ray caster that allows the user to move the light source around and visualise how light interacts with boundaries in the surroundings.
Detailed Blog
Features
> Randomised environment on each run of the project
> Users can move the light source around using arrow keys
Tech Stack
Golang, Pixel Library
Source Code
Demo