Hi!
I have used Maya to create the Tetris blocks:
To create also the collisions, I have selected that block, pressed Ctrl. + D, and set it as child of the block with the same name, adding it UCX_ prefix:
To export to Unreal I use Send to Unreal menu with both objects selected:
In Unreal editor, when I import it I deselect Generate Missing Collision option:
When I open the Mesh in the Mesh editor and select Show simple collision I get this:
Why isn’t importing collisions correctly?
Thanks.
3dRaven
(3dRaven)
April 12, 2024, 7:16pm
2
I think unreal sees the shape as concave instead of convex and ignores the UCX_ collision in that case.
Thanks.
How can I add a collision that fits the mesh?
3dRaven
(3dRaven)
April 13, 2024, 7:28am
4
Go into the static mesh Collision =>Auto Convex Collision => find Convex Decomposition (should be below details panel) adjust collision slider complexity as needed => Apply!
Or you can add the collisions by hand (by adding box collisions) in case of simple stuff like tetris blocks.
rob_hm
(rob_hm)
September 16, 2024, 8:17pm
5
Adding another solution here as this thread is high in Google results for this issue:
I use the Game Exporter function in Maya as it’s convenient for batch exporting many objects at once
I use FBX 2020 as the Exporter for Unreal 5.4.4
Important - in the cog icon next to the FBX Version make sure “Include Children” is ticked
Name correctly - eg for MeshName make an object in Maya called UCX_MeshName for a convex object
Middle mouse drag the UCX object onto the Mesh in the Maya Outliner to make it a child of your Mesh
Select the Mesh (it should select the UCX as well) and Export to fbx using the Game Exporter window
Ensure “Generate Missing Collision” is turned off in the Unreal window
I prefer to keep “One Convex Hull Per UCX” ticked but you can experiment with this
Your collision should now import correctly, check with Show > Simple Collision