How do I create a 3D concave shape in both CollisionShape and MeshInstance?

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

I’m looking to create the two types of shapes in the middle:

Sorry if this is a stupid question, I’m very new to Godot. Help much appreciated!

When you say create the shape what do you mean? A sprite with that shape or a collision shape with that shape or something else?

Gluon | 2022-12-25 14:51

A 3D meshinstance and collisionshape with that shape. Doesn’t have to exactly be like in the diagram, I’m just asking how to create a concave surface in 3D.

eayst | 2022-12-26 06:32

:bust_in_silhouette: Reply From: Gluon

If you create a collision polygon2d you can then trace out any shape you want. The more points of reference you use the more smooth the concave or convex surface will be. In principle a rounded edge is just a polygon with an infinite number of points. If you really wanted you could use calculus to create a curve with a very large number of points which you could program in but in practice I am not sure you would ever need to actually do that.