Version: Next

Complex collision meshes

What?#

In Unreal Engine the collisions can only be computed on convex meshes. Thus the default collision mesh of a part is a simple convex mesh which may not represent reality.

For instance the default collision mesh of a table don't let you go between the legs.

all_v1.11_skyprep_advanced-prep_complex-collisions_table-convex

It is possible to create more realistic collisions doing a convex mesh decomposition.

How?#

Double click on the StaticMesh to open it, then check the simple collision box to visualize it. You see the default convex mesh.

all_v1.11_skyprep_advanced-prep_complex-collisions_show-collisions

Open the convex decomposition tab clicking on auto convex collision.

all_v1.11_skyprep_advanced-prep_complex-collisions_auto-convex-collision

You will find it at the bottom of the Details panel.

all_v1.11_skyprep_advanced-prep_complex-collisions_convex-decompo

You have three parameters:

  • Hull Count: maximum number of convex pieces that will be created.
  • Max Hull Verts: maximum number of vertices in each hull.
  • Hull Precision: accuracy of the meshes.

The more you increase these parameters the more it is accurate but the more it takes time. Once you have set these values you can apply. You will see the result in the viewport.

all_v1.11_skyprep_advanced-prep_complex-collisions_table-convex-decompo

When your done, save and cook your project and open it with SkyReal.