Raycasting in 2D (line segment intersection)

In this video we go over line segment intersection tests and how we can use them in game to create our own 2D raycasting function! Code: I also included the line intersection equation in the 2D collision if you want a typed form: Hope you enjoyed!
Back to Top