behdad / box2d

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

Latest Revision (186) Broke Fixed Rotation #211

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Bodies with the fixed rotation flag set can rotate, and they move very oddly. 
For instance, they seem to ignore friction and rotate indefinitely.

I'm only going by the Character Collision test, but it seems the problem didn't 
exist in revision 185. I have no idea what's causing it, since there were a 
number of changes to rotation and mass in rev 186.

Original issue reported on code.google.com by NagelBa...@gmail.com on 23 Jun 2011 at 8:10

GoogleCodeExporter commented 9 years ago
It seems to be only the mouse joint that's at fault. In 
b2MouseJoint::InitVelocityConstraints, I believe:
m_invIB = m_bodyB->m_invMass;
should be:
m_invIB = m_bodyB->m_invI;

Original comment by chriszca...@gmail.com on 24 Jun 2011 at 3:11

GoogleCodeExporter commented 9 years ago
Rev 188.

Original comment by erinca...@gmail.com on 26 Jun 2011 at 7:00