Skip to content

Commit

Permalink
fixed Example.timescale
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Dec 25, 2015
1 parent 137580c commit 19656cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/timescale.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
var body = bodies[i];

if (!body.isStatic && body.position.y >= 500) {
var forceMagnitude = 0.04 * body.mass;
var forceMagnitude = 0.05 * body.mass;

Body.applyForce(body, { x: 0, y: 0 }, {
Body.applyForce(body, body.position, {
x: (forceMagnitude + Common.random() * forceMagnitude) * Common.choose([1, -1]),
y: -forceMagnitude + Common.random() * -forceMagnitude
});
Expand Down Expand Up @@ -88,4 +88,4 @@
}));
};

})();
})();

0 comments on commit 19656cd

Please sign in to comment.