Page 1 of 1

[SoftBody+SoftBody] Collisions [HELP!]

Posted: Mon Sep 21, 2015 12:39 pm
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

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

Posted: Thu Sep 24, 2015 2:06 pm
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