Non elastic rope II

Please don't post Bullet support questions here, use the above forums instead.
Post Reply
Morfo
Posts: 5
Joined: Thu Mar 18, 2010 4:09 pm

Non elastic rope II

Post by Morfo »

Hello. I'm trying to make a non elastic rope for our game without using soft bodies. Our rope is just a chain of small rigid bodies, and, following the suggestion of another post with same subject, using btGeneric6DofConstraint between them. What happens is, when we attach the last chain element to a heavy rigid body, and we drag the first element with a big force, looks like one of the constraints gets broken, because is no longer keeping the fixed separation distance. What could we do to fix this? Any help will be appreciated. Thanks very much.
marcimatz
Posts: 34
Joined: Fri Sep 18, 2009 5:41 am

Re: Non elastic rope II

Post by marcimatz »

Maybe try to increase the mass of the small rope elements?
nisse
Posts: 19
Joined: Sat Sep 05, 2009 12:26 pm

Re: Non elastic rope II

Post by nisse »

This is a well-known instability. Light elements under high tension vibrates at high frequency - like tuning a guitar string. When the vibrational frequency becomes close to or smaller than the time-step size these high-frequency modes may develop into instabilities.

Increasing mass, element size and number of iterations help. Also decreasing the time-step size. Increasing the resistance to bending of the joint help as well (e.g. a relaxed lock-joint). But that should be done dynamically such that it increases under high tension and decreases again when the tension drops.

www.vrlab.umu.se/research/flexible/rbcve.pdf

There some other ways as well - but probably takes some labor to get it implement in Bullet.

I guess position-based dynamics steppers (that projects positions and orientations to maintain constraints) are less flawed by this instability. Anyone with experience on this, please comment!
Morfo
Posts: 5
Joined: Thu Mar 18, 2010 4:09 pm

Re: Non elastic rope II

Post by Morfo »

Thanks very much for the answers. At the end, we are using soft body ropes, they are much more stable for this kind of issues.
qupie
Posts: 5
Joined: Thu Apr 14, 2011 8:20 am

Re: Non elastic rope II

Post by qupie »

one good solution is to use uneven mass entry per rope node. To compensate for node forces created towards top rope area due to a heavy object anchored at bottom area, the nodes should get heavier as moving towards top area. That will make lighter rope towards load area and heavier rope at top to handle strong forces.
Post Reply