How to make a 3D triangular Prism Static Body in Godot (Please explain it Briefly )

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Siddharth Pushkar

I was able to make its prism mesh but the I am confused how to set its collision shape please guide me through that!

Static Body
Meshistance :- Prism mesh
Collision Shape :- ???

:bust_in_silhouette: Reply From: btuso

You could generate it from the Godot editor, using the mesh sub menu. It will automatically create a collision mesh based on your mesh geometry.

It is intended mostly to create debug collision meshes, but it might cover your case.

Click the MeshInstance object and then the following sub menu:

Mesh Submenu

Which results in:

Mesh with collision shape

You can se the faint blue line of the collision shape cutting across the prism.

Be aware that this will also generate a static body, so you might want to check what to keep and what to delete.