Sign in to follow this  
ghostd0g

mass spring system (free src/lib)

Recommended Posts

hi there, i'm looking for a free mass-spring-system. it should be (numerically) rather stable, not too shacky and have support for a distance constraint between the single springnodes. [H]--/\/\/\--[N]--/\/\/\--[N]--... <----D---> i want to attach the spring head (H) to some moving point. the other nodes (N) should then of course follow the head (stretch first, then come after). the minimum distance constraint (D) should be fullfilled (with some small vershooting of course). when the head moved too fast the whole system should not go nuts but rather be slow. i already tried and re-implemented some example-code i found on the web but it never worked so well. maybe i just don't know enough about the parameters (could anyone point out good material on this topic?) ... and i already looked through the sticky thread here and the game-lib-list but i think none of the physics engines offers such a thing. right now i could live with a 2D version although i'm generally interested in a 3D version. oh ja, standard c++ preferred... thanks in advance

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this