Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Two pieces of cloth penetrate each other using PhysX SDK 3.3.1


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 brightsun   Members   -  Reputation: 105

Like
0Likes
Like

Posted 22 April 2014 - 08:26 PM

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



Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS