In another thread, it was suggested that I consider using static mesh instead of landscape in UE5 for performance and other reasons.
I made a 500m x 500m static mesh with hills on it, and it looks good in shape (I haven’t added texture yet, that should be trivial), but I don’t know how to add collision to the surface.
I tried convex collision several different ways, but the result is not even close to acceptable.
How does one add collision to a large terrain static mesh in UE5?
Hey there @HawaiianGamer! Depending on the fidelity of the mesh you could set it to use complex collision as simple, which will use it’s faces. So if you were judicious on it’s faces, it may not be so bad. The multi-point convex hulls won’t cut it for something of this scale and complexity most likely.
Yes, I found that works in a pinch, but I read that it can be processor heavy for lots of tris. I also read that I should create an approximate mesh with reduced tris and make that my collision mesh, but I haven’t been successful in getting that to work yet. I guess at this point that is what I need to learn how to do correctly. Any links on a good tutorial would be appreciated. (I am using blender3.6 and UE5.3.)
My current plane is 500m x 500m with tris of size 5m x 5m. Do you think that is too dense for complex collision?
Hard to say from numbers alone, 20k tris isn’t honestly so bad for one massive object on modern computers, but due to the concerns of it always being loaded I’d recommend stress testing it before production. (Unless this is mobile then it’s way too much). That said if it is too heavy, the plan would be to make a decimated version in Blender and then use that mesh as the collision with the copy collision from selected static mesh.
I think I got it working, but not with the menu item you pointed out. That menu item is disabled (grayed out). But I am curious, how do I get the menu item activated so I can try it out?
edit: I found how to get it to activate, but when I use it, the collision isn’t right. I will keep playing with it.
So whenever I use the menu item Copy Collision from Selected Static Mesh, it copies the collision and it looks like a simple convex shape which is useless.
But when I use the Complex Collision Mesh it works fine. And I know this collision mesh is from the imported collision mesh, because I have made changes that don’t align with the actual mesh. So I know when I decimate it, it will be the cheaper collision mesh that I am using.
I had to do the following:
select Complex Collision As Simple
check Customized Collision
reference the Collision Mesh I built with Blender (using the collision modifier)