how to avoid the rope hanging free (at the anchor point)?

frontier
Posts: 1
Joined: Thu Jan 24, 2013 3:43 pm

how to avoid the rope hanging free (at the anchor point)?

Post by frontier »

Hi everyone!

I'm trying to simulate hose behaviour. I'm using btSoftBodyHelpers::CreateRope function to create my hose.

The problem is that my hose is attached to the wall and should have a direction vector at the anchor point (top picture). When I add anchor to the first node of the rope, I see the rope hanging freely (bottom picture). I tried to fix several nodes (by adding anchors with a shift), but it leads to strange rope behavior - acute angles (my suggestion is that it the result of bending constraints(?)).

Is it possible to add a desired behavior to the rope?
You do not have the required permissions to view the files attached to this post.
Flix
Posts: 456
Joined: Tue Dec 25, 2007 1:06 pm

Re: how to avoid the rope hanging free (at the anchor point)

Post by Flix »

It's probably possible using rigid body chains made of capsule shapes internally, but using cylinders at edges.
Alternatively you can try using a fixed rigid body chain for the first pieces and merging them with a soft rope (maybe with some constraint...).
Or you can try using the "shape matching" features of soft bodies and passing a rope mesh manually so that it would preserve its initial shape (not sure it's a good solution).