Skip to content

Commit

Permalink
fixed issue with Body.applyForce torque, closes #64
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Dec 23, 2015
1 parent b79ece2 commit 3f9364c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/body/Body.js
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ var Axes = require('../geometry/Axes');
body.force.x += force.x;
body.force.y += force.y;
var offset = { x: position.x - body.position.x, y: position.y - body.position.y };
body.torque += (offset.x * force.y - offset.y * force.x) * body.inverseInertia;
body.torque += offset.x * force.y - offset.y * force.x;
};

/**
Expand Down

0 comments on commit 3f9364c

Please sign in to comment.