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:
gist.github.com/EgoMoose/f3d2...
I also included the line intersection equation in the 2D collision if you want a typed form:
wiki.roblox.com/index.php?titl...
Hope you enjoyed!
Негізгі бет Raycasting in 2D (line segment intersection)
Пікірлер: 32