Tuesday, May 26, 2009

Physics on Pixels


There are so many great Actionscript libraries now that it's hard to find time to experiment with them. This is my first foray into the popular Box2D Physics library. Working through the tutorial-like manual made picking this up a breeze although the API is not as clearly documented as PV3D so a little poking around is required to see what the available options are.


This is a quick experiment so I haven't wired it up with as many options as I'd like yet. At the moment, this is the maximum resolution I can get: there is a limit imposed on how many bodies can be simulated although I'm sure there is a workaround for that. There is no fullscreen button but clicking anywhere in the .swf will expand it for you.

No comments: