I was recently adjusting the stability of Physaxe, a Haxe 2D Physics Engine, and came up with good results and bug fixes, so I just released 1.2 version. Here's a funny example where you can move the mouse around to modify the gravity. There's currently no gravity-center so it will only change the direction and power of the gravity.

The material used has a very small friction, so it's easy for the blocks to slide on each other.

BTW Physaxe is still lacking joints support, so I'm looking for someone interested in helping on that topic, please write me if you are ;)

[phx_box.swf]

And of courses the sources, if you want to play with it :

install Haxe

run the command haxelib install physaxe to install the Physaxe library

to install the Physaxe library copy and save the source code to Test.hx

run haxe -swf9 test.swf -main Test -lib physaxe to compile it

to compile it have fun !