Does anyone have recommendations on how to create stable complex structures using a nodes and edges framework? I'm working on something that's along the lines of "World of Goo" or "Fantastic Contraption". I tried using rectangular bodies for edges pinned to circular bodies for nodes by using zero-length constraints, but once a structure gets reasonably complex I'm seeing erratically unstable behavior like this:

Any thoughts or advice would be appreciated!
Try these out:
engine.constraintIterations = 10constraint.stiffness = 0.01Thanks!
I already tried reducing the stiffness, but that didn't help too much and had the side effect of making the structure collapse into itself.
I tried increasing the iterations and that helped make it less likely to happen, so it gets me closer! I can make the structure more complex now, but it eventually breaks as I add more to it.
I'll try adding constraints between nodes and see how that does. I've noticed that the instability seems to occur first on a node with 4 or more constraints, especially when there's a decent amount of stress on one or more of the constraints. Nodes with 3 or fewer are generally fine until the rest of the structure goes berserk.

Thanks for your help @liabru!
Using a combination of your recommendations, I was able to get it to function correctly with much more consistency:
1 to maintain structural integrity.0.1: this removed the erratic instability, but keeps the edge bodies nearly in place for collision effects.Great, this type of thing is usually takes a bit of trickery in physics engines to get right. You might also want to try varying the mass of each body (less mass as it goes up?), increasing air friction and even enabling sleeping.
Keep me posted, will be cool to see where you take this!