NVIDIAGameWorks / PhysX-3.4

NVIDIA PhysX SDK 3.4
https://www.nvidia.com/
2.34k stars 275 forks source link

PhysX 3.4 issue with Heightfields and sweeps #126

Open FlisboaS opened 4 years ago

FlisboaS commented 4 years ago

Hi,

I am using PhysX 3,4 to implement a vehicle and I have everything working except when I drive on an Heightfield the wheels seem to bump on an invisible object from time to time. After further debugging I noticed that this only occurred when the vehicle passes on the edges of a heightfield section (I am using UE4 Landscape).

The vehicle wheels use non blocking suspension sweeps and this issue does not happen if I change this to blocking suspension sweeps.

On the intersection of two Landscape sections, the suspenion sweeps report several hits, each of them with different hit normals, while when driving outside of these intersections it only reports one (correct) hit. This makes the vehicle wheels bump upwards everytime I drive by one of these intersections making it look like it hit some small object on the ground. This problem can also be reproduced by driving on the intersection of two static meshes side by side.

I was wondering if you had any insight to why this is happening and how I can fix it. Thank you.