Jump to content

View more

Image of the Day

WIP title screen for #DeathOfAPartisan #screenshotsaturday #gamedev https://t.co/qJNhfZCvd4
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Two pieces of cloth penetrate each other using PhysX SDK 3.3.1

4: Adsense

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   

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






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.