using mass spring system in unity
Hi, I have a question and I would be appreciated if you help me.
I wanted to make an elastic surface and deform it when I want. I have made a surface by some Mass springs (in fact I just created some nodes and considered these nodes as some rigid bodies and after that, I just assigned the spring joint to them). But the question is that when I want to pull up one of these mass (to make a local maximum) and hold this maximum (fix new position for maximum), Other masses in the surface will not be stable and will just come back to their first positions on the surface. I could not see the good behaviour of other masses when I wanted to have a maximum on the surface. Would you please help me. I want to have stable mass-spring system after making a change fast.
To "reset" the natural position for a spring, or any kind of physics joint, I think you have to destroy it, then re-add a new one (with AddComponent, which is a pain since you have to redo every setting). I think joint always take the current position, when you add them, as resting, which can't be changed.