Menu

#6 b2TimeOfImpact infinite loop

open
nobody
None
5
2009-08-11
2009-08-11
Paril
No

"ccd via secant method" code enters an infinite loop when certain bodies are attempting to collide.
Odd part is, none of the bodies that were on the screen were in CCD mode.

This loop causes problems:
// Determine when intervals intersect.
int32 rootIterCount = 0;
for (;;)
{
// Use a mix of the secant rule and bisection.

When Debugging, the b2Assert(rootIterCount < 50) gets caught. The rootIterCount goes right up to 8000000 in a matter of seconds.
Perhaps implement some sort of catch to end this loop even if nothing was found?

Discussion


Log in to post a comment.

MongoDB Logo MongoDB