[ODE] Framerate problem *again*
Marco Bancale
F104 at softhome.net
Wed Feb 12 12:11:01 2003
Hi Mark!
> I'm interested if you get it working, because I only got erratic results.
Ok, I tried. I call dJointGroupEmpty() (after dWorldStep()) only if
I also called dSpaceCollide() in the same frame. Here it is:
if ("it's time to check collision") {
dSpaceCollide();
bCollisionChecked=true;
}
else
bCollisionChecked=false;
while ("pushing to realtime")
dWorldStep();
if (bCollisionChecked==true)
dJointGroupEmpty();
Hope it's what you did mean.
I can say that it works very well, even better than before! Bounces
look more natural. So maybe your reasoning is really right, but there's
a bug in your code!
Bye Bye
Marco