NVIDIAGameWorks / PhysX

NVIDIA PhysX SDK
Other
3.15k stars 794 forks source link

Generating Contacts with a custom collision library #330

Open kontor1923 opened 4 years ago

kontor1923 commented 4 years ago

Hi,

I have some geometry originating from another app which is too complex to represent in any of the primitive or mesh types of Px in a performant way. This is a huge and changing terrain surface.

I am planning to use a custom collision detection tool to check for collisions between between shapes of PxRigidDynamics and the external geometry.

How can I make Px aware of these collisions? Is it possible to generate PxContact manually?

Thanks,

preist-nvidia commented 4 years ago

Just in case you have not seen it - are you aware of the heightfields feature? It may be a suitable approach for representing your large terrain and would take care of the contact issue: https://gameworksdocs.nvidia.com/PhysX/4.1/documentation/physxguide/Manual/Geometry.html#height-fields