Objects stalling when colliding tangentially

Hello,

I'm having some problems with objects stalling/freezing momentarily when colliding tangentially. As an object comes close to another, it will look as though it is sticking to the other object for a second and then it will respond and move off in the other direction as it should. I'm wondering if there is a way to fix this?

I have the b2_velocityThreshold set to 0.00001 and this still isn't helping. Is it possible to fix this?

I appreciate any help you can lend.

EDIT: Set b2_velocityThreshold to 0.0, and I've tried altering the iterations. Neither of which help.

Also noticed it's not only tangential, but mainly tangential. Thanks again
There are a number of fixes that when in recently that might fix this. What version do you have? Try disabling continuous physics.
I was having an issue with this as well (I think). I had a motorcycle type vehicle who's wheels would behave strangely as it moved up/down slopes. Turning off continuous physics seems to have fixed it. I am using revision 101.
I think I know what the problem is. I have filed an issue on this:
http://code.google.com/p/box2d/issues/detail?id=122
Thank you for the replies everyone.

Erin Catto wrote:
There are a number of fixes that when in recently that might fix this. What version do you have? Try disabling continuous physics.

I just updated my version to 2.1.2, and I'm still having the same issue. How do I turn off Continuous Physics?

Erin Catto wrote:
I think I know what the problem is. I have filed an issue on this: http://code.google.com/p/box2d/issues/detail?id=122

I don't quite understand this post, could you elaborate a bit on this?

Much appreciated.
Try this:
Code:
myWorld->SetContinuousPhysics(false);


Please let me know if that helps.

I suspect the problem might be continuous collision stalling the body.
Hi Erin,

That made everything a lot worse. Now I have nothing colliding properly if the speed is too fast. What I have is an object being controlled by the mouse and it is hitting another object around inside a box. Normally the object being hit responds correctly, only on certain occasions does it ever start to stall. Usually these occasions occur when it hits one of the walls at a very sharp angle barely grazing the wall. I also noticed that once it happens it happens a lot more often than it did when it didn't happen at all.

Thanks for your help!

P.S. Is there any release notes or changes list for the new version I could take a look at? I'm finding quite a big change from 2.0.1 to 2.1.2, thanks again!
apipher wrote:
P.S. Is there any release notes or changes list for the new version I could take a look at? I'm finding quite a big change from 2.0.1 to 2.1.2, thanks again!


Yes, here: http://box2d.org/forum/viewtopic.php?f=2&t=4739
Hey Erin,

Do you have any feedback on my problem here with the stalling? I've tried implementing v2.1.2 but I've been having problems (There is another post on the forums by me). I was hoping I could stick with 2.0.1 for the remainder of my project to keep everything simple.

Thanks for your help.
If you want any specific feedback, you'll have to provide a testbed example in C++ that reproduces the problem. Otherwise, I'm just guessing.

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