Are there any negative ramifications of creating new objects during b2World::Step() when collision callbacks are fired? Box2D is throwing assertions in b2World::SolveTOI. It is the first assertion in that function. Here's a snippet:
t0 is equal to 1.0f. One of the bodies was just created as the result of a collision. What does it mean if t0 >= 1.0f?
Dan
Code:
// Put the sweeps onto the same time interval.
float32 t0 = b1->m_sweep.t0;
if (b1->m_sweep.t0 < b2->m_sweep.t0)
{
t0 = b2->m_sweep.t0;
b1->m_sweep.Advance(t0);
}
else if (b2->m_sweep.t0 < b1->m_sweep.t0)
{
t0 = b1->m_sweep.t0;
b2->m_sweep.Advance(t0);
}
b2Assert(t0 < 1.0f);
float32 t0 = b1->m_sweep.t0;
if (b1->m_sweep.t0 < b2->m_sweep.t0)
{
t0 = b2->m_sweep.t0;
b1->m_sweep.Advance(t0);
}
else if (b2->m_sweep.t0 < b1->m_sweep.t0)
{
t0 = b1->m_sweep.t0;
b2->m_sweep.Advance(t0);
}
b2Assert(t0 < 1.0f);
t0 is equal to 1.0f. One of the bodies was just created as the result of a collision. What does it mean if t0 >= 1.0f?
Dan