flash on 2010-12-23
♥0 |
Line 16 |
Modified 2011-02-25 08:42:58 |
MIT License
archived:2017-03-09 16:59:55
ActionScript3 source code
/**
* Copyright shapevent ( http://wonderfl.net/user/shapevent )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/mwTl
*/
package {
import flash.display.*;
import com.actionsnippet.qbox.*;
public class FlashTest extends MovieClip {
public function FlashTest() {
var sim:QuickBox2D = new QuickBox2D(this);
sim.createStageWalls();
for (var i:int = 0; i<4; i++){
sim.addCircle({x:4, y:4, radius:1});
}
// bouncy box,
// change restitution to
// alter bounciness
sim.addBox({x:6, y:10, width:4, height: 0.25, density:0, angle:0.3, restitution:3.6});
sim.start();
sim.mouseDrag();
}
}
}