[=“, post:64, topic:37461”]
I’m at the 4.21 fixed the meshes issue with the other engine change but the landscapes still giving the same issue, the solution you wrote don’t even exist.
Someone have a fix for the landscapes ?
Thank you.
[/]
Got it fixed:
In the file LandscapeCollision.cpp:
extern ENGINE_API TAutoConsoleVariable<float> CVarMaxContactOffset;
then add the read of the var:
const float contactOffset = CVarMaxContactOffset.GetValueOnAnyThread();
HeightFieldShapeSync->setContactOffset( contactOffset );
Thats all!
Edit:
Now there is just a problem, the whole ball vibrates over the landscape surface
The only way I found to fix it is hard fix the contactOffset value in the code to 0.05, for some reason isn’t reading it properly
Edit #2:
if you use const float contactOffset = UPhysicsSettings::Get()->MaxContactOffset; should be fine
Edit #3:
Made a pullrequestgithub.com/EpicGames/UnrealEngine/pull/7653