How to make a custom 3d collision shape?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Aiger
:bust_in_silhouette: Reply From: johnygames

There might be a better way, but here’s what I know:
One way it to fill your MeshInstance with custom primitives, like boxes and spheres, until it is covered sufficiently.

Another way is to select your MeshInstance. A “Mesh” option will appear on the top toolbar (next to Transform and View). Click that and select “Create Convex/Trimesh Collision Sibling”.

Note that I have tried that and for some reason it slows down my game to the point of crashing. Others say they did not face any issues. Could you please try it and report your performance?

:bust_in_silhouette: Reply From: siamak-s

Follow these steps:

  1. Model your custom 3D mesh in a modeling software like Blender
  2. Export it as .obj
  3. Import exported mesh to your desired scene as a MeshInstance
  4. From top toolbar, click on Meshbutton
  5. Select Create Trimesh/Convex Collision Sibling
  6. After creating custom 3D collision shape, remove original mesh