Rope and SoftBody

prince
Posts: 4
Joined: Tue Jul 08, 2008 11:20 am

Rope and SoftBody

Post by prince »

I was trying out some simulation with Rope (created by using btSoftBodyHelpers::CreateRope). While collision detection between Rope and btRigidBody(I have tried with boxes only) was fine, that with btSoftBody (softbody created by btSoftBodyHelpers::CreateEllipsoid) does not seems to work - the rope passes right through the soft body. The softbody has the same parameters as the one used in Volume conservation demo. I have tried reducing the mass or rope to 0.01, yet it does not work.

Can anyone elucidate me.

Thanks.
Nathanael
Posts: 78
Joined: Mon Nov 13, 2006 1:44 am

Re: Rope and SoftBody

Post by Nathanael »

You need to enable soft/soft collision detection (disable by default), so for each one of your soft bodies:

Code: Select all

mybody->m_cfg.collisions |=	btSoftBody::fCollision::VF_SS;
Collision handling between soft bodies are not especially well handled yet, (vertex/face only), so you may have to tessellate quit a bit to achieve nice results.

Hope it help,
Nathanael.
prince
Posts: 4
Joined: Tue Jul 08, 2008 11:20 am

Re: Rope and SoftBody

Post by prince »

It worked.... :D Thanks...