Jump to content
  • Advertisement
Sign in to follow this  
Viper173

Mass Spring System

This topic is 4878 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi there. For about half a year now, I'm trying to think about a solution for this topic. I guess I figured out something that sounds promising... but it pretty much forces me to find the equilibrium point of a spring system. A number of spring connections given, how do you find that mass' natural eq. point? I'm talking about a single mass and its material constaints. I took the approach of a (Force)Vectorfield that is generated by the springs. setting the derivative to zero would give us the eq. point. But as easy as it sounds...just three connections are enough to let the equations explode! Any idea?

Share this post


Link to post
Share on other sites
Advertisement
Is this a simulation that has to run realtime? Doing things the force field way seems overly complicated to me, though if you do go that route, there are any number of general solver methods that could help (see Numerical Rescipies online)

In my opinion, the easier way is to run an iterative solver. Simulate a point mass, connected by springs to some fixed points. At every step of the solution, calculate the sum of the forces acting upon the point, and move it a bit in that direction (you do not need to be physically correct here, and keep track of momentum: if you go this route, just scale the sum of the forces by some small constant so it will be stable). Repeat until the sum of the forces falls below some threshold.

Share this post


Link to post
Share on other sites
Well here's ma idea:

The problem of mass spring systems (as you described one) is that the stiffness is indirect proportional to the time step. (or somthing like that)
That requires an enourmous cpu load if you wanna simulate metal materials for examle.

So I figured why not using a dampened oscilation to get an accurate position of the mass point after any time step???

There's only the problem of the force that point is creating on its neighbor by this oscilation.

But I didn't even get that far.
Turns out that you (of course) need an equilibrium point to be able to make ot oscillate around that point.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!