Skip to content

Commit

Permalink
improve box start positions in demo
Browse files Browse the repository at this point in the history
  • Loading branch information
kripken committed Mar 17, 2013
1 parent 66634d0 commit 97fa2b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/webgl_demo/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ function resetPositions() {
if (i == bodies.length) break;
var body = bodies[i++];
var origin = body.getWorldTransform().getOrigin();
origin.setX(x * (2.2 + Math.random()) - 1.7 - side/2);
origin.setY(y * (4.2 + Math.random()));
origin.setZ(z * (2.2 + Math.random()) - 1.7 - side - 5);
origin.setX((x - side/2)*(2.2 + Math.random()));
origin.setY(y * (3 + Math.random()));
origin.setZ((z - side/2)*(2.2 + Math.random()) - side - 3);
body.activate();
var rotation = body.getWorldTransform().getRotation();
rotation.setX(1);
Expand Down

0 comments on commit 97fa2b1

Please sign in to comment.