Skip to content

Commit 2beb275

Browse files
fix damping in RotationalSpring
1 parent 6d01338 commit 2beb275

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/objects/RotationalSpring.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ RotationalSpring.prototype.applyForce = function(){
5252
x = bodyB.angle - bodyA.angle,
5353
u = bodyB.angularVelocity - bodyA.angularVelocity;
5454

55-
var torque = - k * (x - l) - d * u * 0;
55+
var torque = - k * (x - l) - d * u;
5656

5757
bodyA.angularForce -= torque;
5858
bodyB.angularForce += torque;

0 commit comments

Comments
 (0)