Problem with FixedPoint on Nintendo DS

Hi everyone

I am currently working on a game, which uses Box2D for physics. Currently, we use version 2.0.1, but since the Kinematic Bodies would be quite useful, I am currently trying to get the newest version from Google Code to run. I understand this version may be unstable in various ways, but was wondering if anyone else successfully have gotten it to run using FixedPoint math?

So far, the problem appears to be in the b2TimeOfImpact-method in b2TimeOfImpact.cpp. The loop doesnt break until this part:
Code:
if (iter == k_maxIterations)
{
   break;
}
But since k_maxIterations is set to 1000, this takes a long time and the game appears to hang. Changing this to a lower value (like 10) makes the game run, but objects then fall through each other.

This post appears to touch the same issue. However, using the multiplication operation listed there didnt seem to help either.

If anyone has any ideas on what could be wrong or could point me in the right direction, it would be much appreciated. 🙂


Best regards
Rasmus Kristensen
The line is a red herring, that's just a bail out so that it cannot waste time calculating something when each individual result doesn't matter.

The problem is probably that the other early exit isn't working. That one is based on how good the convergence is, so probably has some fixed point tuning issue.

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