question about b2ContactSolver.cpp:100

The line of code is:

float32 kEqualized = b1->m_mass * b1->m_invMass + b2->m_mass * b2->m_invMass;

So when b1->m_mass == 1.#INF000 and b1->m_invMass == 0, the result is kEqualized is -1.#IND000. What value should I use in this case?

-Tim Kerchmar
When these invalid numbers show up, it's often a case of having divided by zero at some point before that - is it possible that you've done that somewhere?
Were you setting the mass to infinity? The engine uses mass == 0 _and_ invMass == 0 for static bodies.
Oh. Mass = 0. Thank you!!!

Original thread: https://box2d.org/forum/viewtopic.php?t=1130