Hmmm... after I fixed some bad Quaternions (I hate those things!), it looks to me like the forces work almost as intended. But the system fails to reach an equilibrium. It looks like the physics are ok, so it's probably a concept problem (and not a code problem).
The forces at work are:
- 50% dampening
- a small, fixed force pushing all object away from those they're not connected (to keep them from cluttering up - but a lot smaller than the forces of the "springs".
- a linear force that pulls the connection points towards the place where the end of the "springs end" should be and is proportional to the difference between the "should-be" position and the current position. This force reaches 0 if the point reaches the location where it should be (relative to the point on the other geometry it's connected to with this "pseydo-spring").
Now - in my mind, this system should reach a state where all the forces are either 0 (because the points are where the springs want them to be) or cancel each others out (because... uhm... well... that's the way it works in my head? xD). But that's not what's happening - instead some objects keep on rotating or even accelerating. Now the questions are:
- What am I missing?
- Does that look "springy" to you?
- Can someone with a better visual / physics thinking than me see what's happening to the rotating bodies? Looks to me like it might simply be related to the way I connected the objects... but if there's some factor that makes the connections / the equilibrium impossible then I fail to wrap my brain around it ATM.
( Btw: Still searching for an "engine / library / tools" that's better suited for things like this / has one dimension less to worry about... and stuff. Should have made 2 seperate topics I guess :/ well, too late now^^)