Stiff elastic body

Hello,

I have two questions:

1) First try:

I am trying to create an elastic body-complex based on the "ElasticBody" testbed example. However, I need it to be stiffer - so I set the spring constant to 5000 with a damping of 17. This leads to an "instable" solution with an exploding / collapsing body.

Just increasing the "iteration" value of b2World::Step does not help, since the spring forces are update "manually" outside of the world->Step function.

What helped was manually reducing the timeStep by a factor of 5-10, thus calling the b2World::Step() function and the spring force function several times per frame. It works perfectly on my mac but is much too slow on the target platform iPhone 🙁

2) The second idea was to modify the body-compley and use (x-1)*(y-1) distance joints. However, this does not work. It looks like the body-complex collapses under its own weight.

Any idea, on this?

Bests,
Stefan

P.S.: Great work - i really enjoyed working with box2d so far.

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