[SoftBody+SoftBody] Collisions [HELP!]

Post Reply
Ehsanizadi
Posts: 72
Joined: Mon Dec 02, 2013 4:13 pm

[SoftBody+SoftBody] Collisions [HELP!]

Post by Ehsanizadi »

Hallo,

Does anybody know how to set the collisionConfigurations in order to have all three:
SoftBody + SoftBody collisions
and
RigidBody + RigidBody collisions
and
RigidBody + RigidBody collisions
simultaneously?

I took a look at the SoftDemo example code, Now I can set SoftBody + RigidBody collisions (as well as rigid-rigid body collisions), however, I cannot get the soft-soft collisions to work.

Regards,
Ehsan
Ehsanizadi
Posts: 72
Joined: Mon Dec 02, 2013 4:13 pm

Re: [SoftBody+SoftBody] Collisions [HELP!]

Post by Ehsanizadi »

I found it:
once you have set the settings as noted in "SoftDemo"
just add

Code: Select all

softBody->m_cfg.collisions		|=	btSoftBody::fCollision::VF_SS;
before adding the softbody to the world.

There is no need to register new collision algorithm.

Ehsan
Post Reply