Why it occurs with the Joints?

Why it occurs with the Joints at their strong stretching?
Can you provide a testbed test to reproduce this?
Erin Catto wrote:
Can you provide a testbed test to reproduce this?



Erin, just change the mouse joint in your test bed to have a max force of 10000 instead of 1000 * the mass...then load up your chain example and yank really hard on one of the end bodies.

I think I saw a post about this somewhere....but I can't find it.
Ok then, that is expected behavior. Joints cannot sustain huge accelerations and they will stretch. This is the price for having a fast solver. In reality the joints would probably break under such load.

You should tune your setup so that joints don't see forces much more than 10x the weight of the attached bodies. Also, you should not have light weight objects supporting heavy objects.
Thanks, I shall try.
And somehow it is possible to make, that joints maintained the big loading?
You can make the joints support a larger load by increasing the mass of the links.
Freeeeeeeman wrote:
Thanks, I shall try.
And somehow it is possible to make, that joints maintained the big loading?


If you increase the number of increments you allow the step function to take you can over come ... some ... of the problem.
Right, more iterations and a smaller time step also helps.
This may seem silly or crazy but just throwing an idea out there.
Could you model the joint using box 2d shapes and get perfection
since CCD will keep things nicely in place?
I guess it will be too slow huh?
Mike
CCD can't replace the approximate solver, it can only enhance it.

Now you can implement a Featherstone algorithm in Box2D to get perfect joints, but this is no small task. This is not and will not be on the TODO list. It's just not worth it for most people.

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