Skip to content

Commit 3f9364c

Browse files
committed
fixed issue with Body.applyForce torque, closes #64
1 parent b79ece2 commit 3f9364c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/body/Body.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ var Axes = require('../geometry/Axes');
581581
body.force.x += force.x;
582582
body.force.y += force.y;
583583
var offset = { x: position.x - body.position.x, y: position.y - body.position.y };
584-
body.torque += (offset.x * force.y - offset.y * force.x) * body.inverseInertia;
584+
body.torque += offset.x * force.y - offset.y * force.x;
585585
};
586586

587587
/**

0 commit comments

Comments
 (0)