CLICK HERE TO COPY
Actionscript:
import com.actionsnippet.qbox.*;
import Box2D.Common.Math.*;
import Box2D.Collision.Shapes.*;
[SWF(width = 600, height = 600, backgroundColor = 0x000000, frameRate=60)]
var sim:QuickBox2D = new QuickBox2D(this);
sim.setDefault({fillColor:0x990000, lineColor:0xFFCC00});
sim.createStageWalls();
var shapeTypes:Array = ["circle", "box", "poly"];
var pnts:Array = [-1, 0, -0.5, -1, 0.5, -1, 1, 0, 0,0.5, -1, 0];
var poly:Array=[];
for (var i:int = 0; i<20; i++){
var xp:Number = 3 + Math.random()*15;
var [...]