Premise
Hello guys,
in our project we have a procedural generated terrain, because we have a random map generation system.
It worked perfectly well in 4.11, and it seemed to work when we upgraded to 4.13 too. Unfortunately when we packaged it again, we discovered that it had some issues.
After some testing, we found out that terrain collisions wasn’t working at all. We created a fresh project to reproduce it.
Issue Description
Procedurally generated mesh works as expected while developing the game (both in the editor and in standalone), but in the packaged project (Win64) its collisions won’t work.
Expected behavior
Procedurally mesh’s collision should be consistently working both in the editor and in the packaged version.
How to reproduce
We prepared a test scenario:
- Create a new “Basic Code” c++ project called “ProceduralMeshTest”
- Extract the given .rar file (Sourcecode and Content) in the project folder
- Generate VisualStudio project files and compile
- Open the project in the editor: it should start in “NewMap”. Play it.
- After a second, the actor that should be in front of you will generate his mesh
- When clicking the left mouse button, the controller does a trace under the mouse cursor, and report if it hitted something or not. Notice that both the floor and the generated mesh interact with the trace. You can move and collide with the actor physically too.
- Package the project (Development - Win64, we verified that the shipping build has the same behaviour too).
- Run the packaged project: after a second the actor will again generate his mesh, but it won’t interact with the trace nor physically (you can pass throught it).
Extra info
We think the problem was introduced with 4.13, but we’re sure that i was totally working only in 4.11.2.
We found a couple of (maybe) related questions:
- https://answers.unrealengine.com/questions/481960/procedural-mesh-component-lost-his-collision-on-pa.html
- https://answers.unrealengine.com/questions/313141/proceduralmeshcomponent-no-collision.html
For the first in particular this issue was opened, but then closed with “cannot reproduce”.
Thanks in advance, cheers.
[edit 1] fixed some typos.