Skip to content

Commit

Permalink
Fixed namespace typo in VerletPhysics2D that was causing an error whe…
Browse files Browse the repository at this point in the history
…never gravity was specified in the constructor.
  • Loading branch information
tkdave committed Aug 8, 2011
1 parent 6c6c7c6 commit 1e80f63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/toxiclibs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/physics/physics2d/VerletPhysics2D.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ toxi.physics2d.VerletPhysics2D = function(gravity, numIterations, drag, timeStep
this.setDrag(drag || 0);

if(gravity !== undefined){
this.addBehavior(new toxi.physics.GravityBehavior(gravity));
this.addBehavior(new toxi.physics2d.GravityBehavior(gravity));
}

}
Expand Down

0 comments on commit 1e80f63

Please sign in to comment.