Procedural mesh generating collision incorrectly
I have made a blueprint that generates a room with a ceiling mesh, a floor mesh, and four wall meshes. The meshes can be adjusted at runtime to change the dimensions of the room. However, when I run the script, only the "north" wall gets collision. All walls are generated by the same CreateWall function and have the same settings apart from the vertex positions. I am fairly new to procedural meshes and I am out of ideas for why this happens. Any advice?
The "Build Room" Function, incoming Bool is whether to build a mesh from scratch or just update the existing mesh:
The "Create Wall" function (as clean as it gets right now):
I can also upload the full blueprint if neccessary.
asked Sep 14 '18 at 01:34 PM in Blueprint Scripting
Hi, I don't know what you did for creating the room but I assume you are changing vertex positions of some meshes. If this is the case I think you should have problem with collisions because collisions are not meant to change in runtime and they are pre-built. I suggest if you can't fix this use simple static meshes and scaling them to fit your room dimensions, for example a box for your wall and scale it are reposition it.
answered Sep 14 '18 at 02:36 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here