Physics objects are falling through landscape
Physics objects are falling through a landscape, if they are small enough.
Cubes with a size of 50x50 never fall through the landscape, cubes with a size of 30x30 rarely do and cubes with a size of 10x10 almost always do.
This is not only happening on a landscape but also on static meshes with a Z thickness of near 0. The "collision thickness" setting of the landacape is not changing the behavior.
I got a reply from Nvidia. The problem is we have enabled Unified Heightfields in PhysX which improve general collision behavior (especially interaction with neighboring triangle meshes) but they do not support the thickness parameter so as you mention, it's being ignored.
It's a single line change in the engine, PhysLevel.cpp replacing PxRegisterUnifiedHeightFields with PxRegisterHeightFields and thickness works as expected
I will add a flag to make the choice of which PhysX heightfield system to use an ini file option for version 4.9.
I've not been able to reproduce this using the 4.8 preview 3.
I've setup three cubes with the size dimensions you mention. Here is a video of my results: https://www.dropbox.com/s/gujk7gz146poh9g/SpawnCollision.mp4?dl=0
With my cubes they are using a collision box for the setup. Are you using a collision box or have you enabled collision complexity to use "Complex as simple collision" (Per Poly)?
answered May 21 '15 at 09:36 PM
Tim Hobson ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here