Skip to content

Commit

Permalink
Fix implicit variable declaration in webgl_physics_rope
Browse files Browse the repository at this point in the history
  • Loading branch information
Itee committed Nov 16, 2016
1 parent 71db658 commit 0ff3a6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/webgl_physics_rope.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
var dispatcher;
var broadphase;
var solver;
var softBodySolver;
var physicsWorld;
var rigidBodies = [];
var margin = 0.05;
Expand Down Expand Up @@ -281,7 +282,7 @@
var sbConfig = ropeSoftBody.get_m_cfg();
sbConfig.set_viterations( 10 );
sbConfig.set_piterations( 10 );
ropeSoftBody.setTotalMass( ropeMass, false )
ropeSoftBody.setTotalMass( ropeMass, false );
Ammo.castObject( ropeSoftBody, Ammo.btCollisionObject ).getCollisionShape().setMargin( margin * 3 );
physicsWorld.addSoftBody( ropeSoftBody, 1, -1 );
rope.userData.physicsBody = ropeSoftBody;
Expand Down

0 comments on commit 0ff3a6a

Please sign in to comment.