I’ve ported and tidied some code from GDC 2006 for a 2D physics engine (all kudos to Erin Catto) - I decided I’ll probably want a reliable 2D physics engine for future gaming projects. At the moment it only handles boxes but I’m hopefully going to extend it to include circles next and refactor the collision stuff along the way.
some screenshots:
http://www.cokeandcode.com/phys2d/screenshots/d1.png
http://www.cokeandcode.com/phys2d/screenshots/d2.png
http://www.cokeandcode.com/phys2d/screenshots/d3.png
Kev