Uploaded March 2013 | Updated November 2026, 8 hours ago
We take a break from character movement this week and look at firing a bullet through our scene with a line/box intersection algorithm.
Watch part 2 here: youtube.com/watch?v=3vONlLYtHUE
Find the source code here: github.com/BSVino/MathForGameDevelopers/tree/line-box-intersection
Question? Leave a comment below, or ask me on Twitter: twitter.com/VinoBS
A viewer submitted this implementation of the algorithm in Unity: gist.github.com/exe4que/63dd6053c02dc838d24defeb097798fe
We take a break from character movement this week and look at firing a bullet through our scene with a line/box intersection algorithm.
Watch part 2 here: youtube.com/watch?v=3vONlLYtHUE
Find the source code here: github.com/BSVino/MathForGameDevelopers/tree/line-box-intersection
Question? Leave a comment below, or ask me on Twitter: twitter.com/VinoBS
A viewer submitted this implementation of the algorithm in Unity: gist.github.com/exe4que/63dd6053c02dc838d24defeb097798fe










