I am using PhysX to model behaviors of cloth.
I create two pieces of cloth, and add a collision plane.
I also enable self collision by PxCloth::setSelfCollisionDistance() and PxCloth::setSelfCollisionStiffness().
And then, I enable cloth inter-collision by PxScene::setInterCollisionDistance() and PxScene::setInterCollisionStiffness().
The result of setting PxScene::setInterCollisionDistance(0.1) :
As you can see, the clothes penetrate each other.
But if I set PxScene::setInterCollisionDistance(0.4)
The cloth collides during simulation.
By the way, I also enabled flags PxClothFlag::eSCENE_COLLISION and PxClothFlag::eSWEPT_CONTACT for the two pieces of cloth.
Does anyone know why the collision distance 0.1 is not work in my case?
Thanks in advanced!