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:
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
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.{
break;
}
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