Skip to content

Commit

Permalink
Update README.markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
schteppe committed Apr 22, 2015
1 parent 2cd242e commit 4528fe8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ The sample code below creates a sphere on a plane, steps the simulation, and pri

```javascript
// Setup our world
var world = new CANNON.World({
gravity: new CANNON.Vec3(0, 0, -9.82) // m/s²
});
var world = new CANNON.World();
world.gravity.set(0, 0, -9.82); // m/s²

// Create a sphere
var radius = 1; // m
Expand Down

0 comments on commit 4528fe8

Please sign in to comment.