From b69e11020b2b44287669c9d213955a819ef9e563 Mon Sep 17 00:00:00 2001 From: liabru Date: Mon, 24 Mar 2014 20:06:00 +0000 Subject: [PATCH] demo fixes --- demo/js/Demo.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/demo/js/Demo.js b/demo/js/Demo.js index 6ed7155..046f420 100644 --- a/demo/js/Demo.js +++ b/demo/js/Demo.js @@ -468,7 +468,7 @@ Demo.reset(); var stack = Composites.stack(20, 20, 20, 5, 0, 0, function(x, y, column, row) { - return Bodies.circle(x, y, Common.random(10, 20), { friction: 0.00001, restitution: 0.5, density: 0.1 }); + return Bodies.circle(x, y, Common.random(10, 20), { friction: 0.00001, restitution: 0.5, density: 0.001 }); }); World.addComposite(_world, stack); @@ -538,7 +538,7 @@ World.addComposite(_world, stack); - var ball = Bodies.circle(100, 400, 50, { density: 1, frictionAir: 0.001}); + var ball = Bodies.circle(100, 400, 50, { density: 0.07, frictionAir: 0.001}); World.addBody(_world, ball); World.addConstraint(_world, Constraint.create({ @@ -658,7 +658,7 @@ World.addComposite(_world, stack); var shakeScene = function(engine) { - var bodies = engine.world.bodies; + var bodies = Composite.allBodies(engine.world); for (var i = 0; i < bodies.length; i++) { var body = bodies[i];