Attaching multiple ropes to multipe bodies

bizack
Posts: 5
Joined: Thu Nov 06, 2008 10:25 pm

Attaching multiple ropes to multipe bodies

Post by bizack »

Is it possible to:

attach a rope from rigid body A to rigid body B, and then attach a rope from rigid body B to rigid body C and so forth and so on? let's say you were trying to create a rope ladder, for example.

I have:

Code: Select all

btSoftBody* rope = btSoftBodyHelpers::CreateRope(m_softBodyWorldInfo, fr, to, 5, 1);
rope->setTotalMass(10.0);
rope->appendAnchor(rope->m_nodes.size()-1, body);
((btSoftRigidDynamicsWorld*)m_dynamicsWorld)->addSoftBody(rope);
but now I need to attach another rope to body, which isn't a static non-moving body.

Thanks.