Landscape scale causes collision glitches

I want to make a landscape that is 20 km x 20 km in size. The biggest overall resolution for generating a terrain is 8161 which is equal to about 8 km when I leave the scaling at “100”.

Now when I set the scaling of the landscape to 250, I get the desired size and everything looks good. But this approach seems to cause collision errors. E.g. small physics objects are falling through the terrain when dropped from a height of about 10-20 meters (Uu).

A “thickness”-value of 500 with disabled “unified heightfields” doesn’t seem to work.

Hey Braindrain85,

This behavior is expected if you are scaling your landscape from from 100 to 250 using the largest landscape possible. It becomes a precision issue at that point as you have changed the scale of the collision, and at that size, it could be very possible that smaller objects will pass through the landscape itself.

Have you attempted to enable CCD on your physics object?

At this point, you might want to look at combining multiple landscapes like using world composition, instead of one giant single landscape. This will help with performance, collision issues like the one you are seeing, and management.

Let me know if you have additional questions.

Thank you,

Hey Andrew,

thank you for your answer.

So you are not supposed to scale the landscape if you want decent collision. Got it.

I’ve enabled CCD and it seems to work perfectly. Is there a big performance hit when CCD is enabled and does it perform well with multiplayer applications?

I have never used World composition because I’ve read that it is not suitable for multiplayer projects. Is that true?

Have a nice weekend.

The only time CCD would become expensive is if you begin to run a large amount of physics checks at once across a server. It sounds like that might be the case, but if you keep your physics simulations to a relatively low amount you will be fine.

World composition is a powerful tool, but still somewhat in it’s early stages of implementation. As long as you stay within the guidelines, then it will work just fine.

Cheers,

Enabled CCD helped fix this for me!

What does CCD stand for?

I still have actors falling through the landscape and can’t seem to find any solution.