Page 1 of 1

Softbody collisions?

Posted: Sat Apr 18, 2009 10:42 am
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

Re: Softbody collisions?

Posted: Tue Apr 21, 2009 6:51 pm
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