Creating collision meshes
You can create collision meshes and export them with your asset. Unreal Engine 4 provides a collision generator for static meshes but there are times when we have to create our own custom collision shapes especially if the mesh has an opening (such as doors or walls with window cutouts). In this section, we will see both options.
Tip
Collision shapes should always stay simple because it is much faster to calculate simple shapes.
Custom collision shapes
Collision meshes are identified by Unreal importer based on their names. There are three types of collision shapes that you can define. They are as follows:
UBX_MeshName: UBX stands for Unreal Box and as the name says, it should be in a box shape. You cannot move the vertices in any way or else it will not work.
USP_MeshName: USP stands for Unreal Sphere and as the name says, it should be in the sphere shape. The number of segments of this sphere does not matter (although somewhere around 6-10 seems to be good) but you...