I wrote a piece of code the other day, which may turn out to be useful to some of you. I basically wanted the objects in my world to be more interactive. So that I could move stuff around and impart velocity and spin on them by dragging and releasing the mouse. Previously I had been limited to initialising my world in code, and then running it to see the physics, but that got old real quick if I was experimenting with something.
The result looks like this: http://www.youtube.com/watch?v=nBwK3pY25Mo
Turns out it's quite fun to play around with those objects - especially after I added the basketball hoop. It's almost like a little game already.
The attached code is written in the same style as chipmunk and I've put the same license on it. It'll only work with the svn version of chipmunk, though.
