Polygon Collision Lib, Response coming soon :)

BlitzMax Forums/BlitzMax Programming/Polygon Collision Lib, Response coming soon :)

altitudems(Posted 2005) [#1]
Hi all,

I've working on creating a very simple collision system for my 2d games. So far it has overlap detection for Poly Vs. Poly, and complete vector math lib. The overlap detection is done via the separating axis theorem. So it should be pretty fast.

I hope this code can help someone. I am also eager to hear any comments or suggestions.

http://www.altitude-studios.com/blitzmax/Polygon%20Collision%20&%20Response.zip

Being able to get this far is a major accomplishment for the novice programmer that I am.

Now I'm focusing on figuring out the best way to seperate two colliding objects. Finding the the shortest push vector between them and then adding it to each objects position sounds like the way to go. But I don't really know how to get the push vector. Any help with that would be greatly apprectiated. Once I get it all sorted out I'll share what I have.

Edit: Oh yeah anybody know a good way to rotate a poly? It's probably easy Just not for me :)


Will(Posted 2005) [#2]
Thanks! Try adding this to the code archives.


Muttley(Posted 2005) [#3]
You may find these tutorials useful: http://www.harveycartel.org/metanet/tutorials.html

Muttley


ashmantle(Posted 2005) [#4]
Congratulations of the achievement ^^