Demo of 2d Raycasting
Builds on demo 1 but notice that we only display the collisions that are shortest in distance