Raycasting in 2D (line segment intersection)

Published: 20 June 2016
on channel: EgoMoose
31,092
565

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:
https://gist.github.com/EgoMoose/f3d2...

I also included the line intersection equation in the 2D collision if you want a typed form:
http://wiki.roblox.com/index.php?titl...

Hope you enjoyed!


Watch video Raycasting in 2D (line segment intersection) online without registration, duration online in high quality. This video was added by user EgoMoose 20 June 2016, don't forget to share it with your friends and acquaintances, it has been viewed on our site 31,092 once and liked it 565 people.