• Advertisement
Sign in to follow this  

Two pieces of cloth penetrate each other using PhysX SDK 3.3.1

This topic is 1371 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts


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!


Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement