From 3f9364c240f8f5c708636789699216c30b5c9f2f Mon Sep 17 00:00:00 2001 From: liabru Date: Wed, 23 Dec 2015 13:41:11 +0000 Subject: [PATCH] fixed issue with Body.applyForce torque, closes #64 --- src/body/Body.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/body/Body.js b/src/body/Body.js index 956a8e5..144d4a4 100644 --- a/src/body/Body.js +++ b/src/body/Body.js @@ -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; }; /**