Advertisement

Two pieces of cloth penetrate each other using PhysX SDK 3.3.1

Started by April 23, 2014 02:26 AM
-1 comments, last by brightsun 10 years, 10 months ago

Hi,

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) :
http://1drv.ms/QrUl5l

As you can see, the clothes penetrate each other.

But if I set PxScene::setInterCollisionDistance(0.4)
http://1drv.ms/QrUzcQ
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!

Kasper

This topic is closed to new replies.

Advertisement