Sign in to follow this  
Raymond_Porter420

rope using stick contraints

Recommended Posts

im trying to make a rope. im just connecting 20 particles is a string using stick constraints. Im using verlet integration basicly straight out of the jackobson paper. My problem is my string wont stop moving. Ive upped the gravity to a crazy amount and it will fall, but at that point it swings back and forth like a pendelum. It wont stop no matter how high my gravity and no matter how many time i apply my constraints. Does anyone know how to relax it a bit ?? Thanks raymond.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
Changing gravity wont have any effect, you need to add some drag to resist the movement.

Share this post


Link to post
Share on other sites
O_o    175
I don't know anything about the implementation but shouldn't a pendulum (i.e. your rope) swing for ever without external forces on it like some kind of friction?

Share this post


Link to post
Share on other sites
should i just multiply my velocity by 0.9999? thats what the paper said to do too. But i use to sticks to just move the particles i dont change the velocity at all. just

p0.pos += 0.5 * dif;
p1.pos -= 0.5 * dif;
dif is a distance to move the particle so that
Len(p0-p1) = restLen
its like the sticks wont solve even at 50 iterations per frame

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
Yeah just multiply all the vels by a factor (as you say 0.999), should come to a stop quite nicely.

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