How to create a cone collisionshape (3D)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Kohl
:warning: Old Version Published before Godot 3 was released.

What is the best way to create a collisionshape for a physics 3D character?
enter image description here

There is no best way, but one way is to model a low-poly cone in a 3D editor, export it as OBJ, import it in Godot and generate the appropriate trimesh collision shape out of it?
Or generate it ingame with a script that creates the trimesh with a bit of math…

Zylann | 2017-12-05 19:51

Nice, I found in the mesh options. Thank you.

Kohl | 2017-12-06 16:16

:bust_in_silhouette: Reply From: StillWaiting

May not be related but to check if somethings is inside a cone via code then you can have a vector that orient your “cone” and get the vector to the target, test dot product and distance to the target.