NVIDIAGameWorks / FleX

Other
668 stars 100 forks source link

Retrieve de contact positions on SDF collision #101

Open leothomas77 opened 4 years ago

leothomas77 commented 4 years ago

I have a soft-body (created with particle buffers and distance constraints as a colth) and a rigid body created as a SDF collision mesh.

I can retrieve the up to 6 contact points of soft-body by the Flex API

How can I retrieve the respective rigid-body contact point for each soft-body contact point?

There is a way of to retrieve the closest point between soft-body contact point and rigid-body SDF by using AABB structure and Flex API?