Hello,
I'm still debugging the cause, but I wanted to put a word out and see if anyone might be able to help. I have a ground body, it is static, and mass, invMass, a, invA, linearVelocity and angularVelocity are all zeroed. In b2Island::Solve:
Second breakpoint will occasionally hit, although some modification I made to the behavior of one of the game objects seems to be triggering it more frequently now. Somehow, collisions cause the ground body to move, every once in awhile. The ground body has a momentum and no drag, so it flies away from the rest of the level along with most of the map.
I'm still debugging the cause, but I wanted to put a word out and see if anyone might be able to help. I have a ground body, it is static, and mass, invMass, a, invA, linearVelocity and angularVelocity are all zeroed. In b2Island::Solve:
Code:
for(int jj = 0; jj < m_bodyCount; jj++) {
b2Body* body = m_bodies[jj];
if(body->GetUserData() == NULL && m_velocities[jj].v.x != 0.0) {
int breakPoint = 0;
}
}
if (step.warmStarting)
{
contactSolver.WarmStart();
}
for(int jj = 0; jj < m_bodyCount; jj++) {
b2Body* body = m_bodies[jj];
if(body->GetUserData() == NULL && m_velocities[jj].v.x != 0.0) {
int breakPoint = 0;
}
}
b2Body* body = m_bodies[jj];
if(body->GetUserData() == NULL && m_velocities[jj].v.x != 0.0) {
int breakPoint = 0;
}
}
if (step.warmStarting)
{
contactSolver.WarmStart();
}
for(int jj = 0; jj < m_bodyCount; jj++) {
b2Body* body = m_bodies[jj];
if(body->GetUserData() == NULL && m_velocities[jj].v.x != 0.0) {
int breakPoint = 0;
}
}
Second breakpoint will occasionally hit, although some modification I made to the behavior of one of the game objects seems to be triggering it more frequently now. Somehow, collisions cause the ground body to move, every once in awhile. The ground body has a momentum and no drag, so it flies away from the rest of the level along with most of the map.