skapunch/box2d

Codes in b2ContactSolver.cpp may be mistaken

Closed this issue · 1 comments

In function b2ContactSolver::SolveTOIPositionConstraints there are codes:
        float32 mB = pc->invMassB;
        float32 iB = pc->invIB;
        if (indexB == toiIndexA || indexB == toiIndexB)
        {
            mB = pc->invMassB;
            iB = pc->invIB;
        }
which are different from codes for mA and iA. Is this a careless mistake?

Original issue reported on code.google.com by wqyfavo...@gmail.com on 25 Dec 2011 at 5:25

Good find!


Completed: At revision: 245  

Original comment by erinca...@gmail.com on 17 Mar 2012 at 6:33

  • Changed state: Fixed