CLICK HERE TO COPY
Actionscript:
import com.actionsnippet.qbox.*;
import Box2D.Common.Math.*;
import Box2D.Collision.Shapes.*;
[SWF(width = 800, height = 600, backgroundColor = 0xFFFFFF, frameRate=60)]
// hide everything for 300 ms
visible = false;
setTimeout(function():void{ visible = true}, 300);
var sim:QuickBox2D = new QuickBox2D(this, {debug:false});
sim.setDefault({fillColor:0x666666, lineAlpha:0})
sim.createStageWalls();
makeLever(6 , 17.5, 9, "right", 0.7);
var circleA:QuickObject = sim.addCircle({x:2, y:3, radius:0.5, mass:4});
sim.addBox({x:15, y:12, width:2, height:0.5, density:0})
sim.addCircle({x:16, y:11, radius:0.5, mass:4, friction:0.2, fillColor:0});
sim.addBox({x:20.5, y:12, width:2, [...]