Original Post
Hi,
I have 2D simulation where I have a number of objects (three for test purposes) with each object connected to its neighbour by a spring.
The spring model has an inertial-length attribute, with spring extension/compression yeilding positive or negative forces on the connecting weights.
I also include a gravity acceleration when caculating forces.
This all works fine, but I want to model the spring as a vector to increase the stability of the model.
If I create a box using four weights with four spring connections, I want to be able to keep one vertex static (like an anchor) with the whole model reacting so that the center of gravity of the model moves to its correct position.
I can get it working by (awkwardly) calculating the angular velocities about the anchor vertex, but this leads to problems with recursion and isn''t very elegant.
Has anyone any ideas?
Thanks.