behdad / box2d

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

Codes in b2ContactSolver.cpp may be mistaken #258

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Good find!

Completed: At revision: 245  

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