What steps will reproduce the problem?
1. Use this code in the TimeOfImpact test:
m_shapeA.SetAsBox(25.0f, 5.0f);
m_shapeB.SetAsBox(2.5f, 2.5f);
b2Sweep sweepA;
sweepA.c0.Set(24.0f, -60.0f);
sweepA.a0 = 2.95f;
sweepA.c = sweepA.c0;
sweepA.a = sweepA.a0;
sweepA.localCenter.SetZero();
b2Sweep sweepB;
sweepB.c0.Set(53.474274f, -50.252514f);
sweepB.a0 = 513.36676f - 162.0f * b2_pi;
sweepB.c.Set(54.595478f, -51.083473f);
sweepB.a = 513.62781f - 162.0f * b2_pi;
sweepB.localCenter.SetZero();
2. Run the test
3. Once fixed, run the test without normalizing the angles. Previously this
lead to an infinite loop.
What is the expected output? What do you see instead?
b2TimeOfImpact returns a false positive for touching.
Original issue reported on code.google.com by erinca...@gmail.com on 12 Apr 2010 at 8:55
Original issue reported on code.google.com by
erinca...@gmail.com
on 12 Apr 2010 at 8:55