playX / box2d

Automatically exported from code.google.com/p/box2d
0 stars 0 forks source link

Typo in ApplyForce.h #291

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I believe the following line :
    jd.maxTorque = mass * radius * gravity;
Should instead be :
    jd.maxTorque = I * radius * gravity;

Cheers,
Martin

Original issue reported on code.google.com by martin.d...@gmail.com on 30 Aug 2012 at 8:23

GoogleCodeExporter commented 9 years ago
That would have the wrong units. We need torque = force * length.

Original comment by erinca...@gmail.com on 23 Oct 2013 at 6:51