Hi everyone,
I have a strange problem with collision.I created a tent in Blender 2.70 and added a custom mesh which will be the custom collision. I named it “UCX_tent”. The thing on the left is the tent and the thing on the right is the mesh which will be the collision.
NOTE: Int the final FBX the collision mesh is on the place on the tent mesh.
Everything is good so far. I export the file (fbx). But here comes the problem. When I import it in UE4 the collision is not the same as the mesh in Blender.
You can see that in Blender the mesh for the collision have a doorway but in UE4 dosen’t and my character cant walk into the tent. If someone of you guys know how to do it. Please share it. Thank you in advance!
I’ve encountered similar issues with importing custom collision meshes. UE4 will not import the geometry exactly the way it was setup in Blender. I’ve found a good way to get around the issues is to break up my UCX mesh into multiple meshes that each have simple geometry. For example you could break yours up into 3 walls, 1 roof, and 3 blocks for the wall with the doorway. You would name the separate meshes with the same name.
For example:
tent
UCX_tent
UCX_tent.001
UCX_tent.002
…etc.
Just want to explain this a bit better, and give you an easier way to do it. Simple collision requires convex meshes. This means the collision mesh must not ever “dip” inside - it should be possible to draw the collision mesh out without ever going “in”. If this is not possible because your collision mesh, for example, is hollow, or has a doorway, then Unreal will convert it as in your question. However, there is an option when importing your mesh, under the advanced settings, called “One Convex Hull Per UCX”. This is, by default, checked. This means that Unreal can only generate one convex collider for each collision mesh you have attached to your object. If you uncheck this, then Unreal can split your collision mesh up into convex sections for you, and create several convex hulls that fit your shape. It may over-generate, though, so you may be better off making your own simpler colliders yourself.
Awesome! I was scratching my head over this for the last hour now trying to figure out why I couldnt go in the door on a fort I made after I imported it. I was hoping to find an easier way but it seems making the object modular is the way to go.