NVIDIAGameWorks / PhysX

NVIDIA PhysX SDK
Other
3.11k stars 793 forks source link

triangleMesh collision detection #571

Open EberleAutomatischeSysteme opened 2 years ago

EberleAutomatischeSysteme commented 2 years ago

Hello,

I have an application where I need to detect the collision of 2 objects (RigidBody Kinematic and Static) as trianglemesh.

In the ReportFileShader I get the collision but the SimulationEventCallback::OnContact is not invoked.

According to: https://documentation.help/NVIDIA-PhysX-SDK-Guide/Shapes.html

the collision of 2 triangle meshes is not supported.

Is this still up to date? or is there a possibility how I could get the collision?

kstorey-nvidia commented 2 years ago

Mesh-mesh collision is not supported in PhysX 4. There is an experimental implementation of mesh-mesh collision available in PhysX 5 - available through NVIDIA Omniverse - which supports mesh-mesh collision through the use of SDFs.