Softbody collisions?

Post Reply
jimt
Posts: 7
Joined: Sat Apr 18, 2009 10:36 am

Softbody collisions?

Post by jimt »

Hi,

I have a simple question about softbody collisions.

I'm trying to create two softbodies with btSoftBodyHelpers::CreateEllipsoid, and have them collide with one another. I've looked through the documentation, and can't find any insight on how to get this set up. As is, they don't collide at all. They just overlap with one another and collide with the floor.

Is there some parameter I need to set or specify in my softbodies to make them collide?

Thanks!

-Jim
FlyingHaggis
Posts: 3
Joined: Mon Jul 14, 2008 3:40 pm

Re: Softbody collisions?

Post by FlyingHaggis »

You need to set the psb->m_cfg.collisions variable to specify softbody vs softbody collision

This *should* work i think.
psb->m_cfg.collisions |= btSoftBody::fCollision::VF_SS;

Hope this helps
-flyingHaggis
Post Reply