🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Step 4 Now identify the maximum and minimum scalar values (the ones that we just calculated) for rectangle A and rectangle B. If the minimum scalar value of B is less than or equal to the maximum scalar value of A and the maximum scalar value of B is greater than or equal to the minimum scalar value of A then our objects overlap when projected onto this axis.
Optimizations
There are a few things that can be done to optimize this algorithm:
Comments
May 04, 2017 02:16 PM
Cool tutorial. Except this is not collision but intersection. Without proper knowledge of linear algebra and analysis a theorem like this will never help you. But I assume you are happy with errors in between the frames because the FPS is so high these days.
March 20, 2020 05:13 PM
Advertisement
Other Tutorials by Myopic Rhino
24628 views
21951 views
Advertisement
Hi there :D
Nice tuturial