LoginLogin

Separating Axis Theorem

Root / Programming Questions / [.]

UndeadSyntaxCreated:
For a while now, I've been struggling with something I'll call "the rectangle issue". I've been talking about it for a while, but I'm trying to find a way to detect if two rotatable rectangles are overlapping quickly and effectively. After some research, I thought about using something called the separating axis theorem. https://gamedevelopment.tutsplus.com/tutorials/collision-detection-using-the-separating-axis-theorem--gamedev-169 According to research, one should calculate the normals of the rectangles. The only problem is I'm not sure how to execute it in SmileBASIC, as it uses vectors and whatnot. Should I even bother using separating axis theorem, or look for something easier?

Sorry for late response. Use GGLIB by PetrifiedLasagna (you will find it here)