I never thought I'd be able to get polygon collisions working in Otter but this past week I managed to jam out a quick prototype of an overlapping polygon test that seems to be working.
Probably not the most exciting image in the world, but it's pretty dang cool to me. I found this tutorial on the Separating Axis Theorem. This tutorial specifically has some great images, and amazing pseudocode with explanations that allowed me to finally understand what the hell to do. I still don't understand some things, like what exactly projecting a vector onto an axis means, but right now I think I have the core of it working.
I'll be working on getting the PolygonCollider integrated into Otter properly over the next few days. That means I'll have to get it working with each other Collider type which shouldn't be too crazy, but we'll see if I end up getting stumped by something!
Hi! I'm Kyle Pulver, and I make video games most of the time in Seattle, Washinton. Here you will find my thoughts, games, websites, doodles, and other stuff like that.
If you want to get a hold of me leave a comment, check out my email at the bottom of the page, or just tweet at me. Thanks for stoppin' by! You're the coolest.