Topic was automatically imported from the old Question2Answer platform.
Asked By
Alex Pires
Hi guys!
How to deal with collision in different types of topology in a 3D environment? I mean, in a irregular topology, I can’t assign a plane or a cube, it’s a mesh with a complex shape.
The answer’s pretty simple. Use a trimesh static body instead. There’s a useful little menu button you can use to create such a collision shape from a MeshInstance.
Be warned however. If the mesh is composed of a lot of triangles, it can cause a performance hit. So either make a trimesh out of a lower poly version, or create a convex version instead. Performance wise it costs less but you’d sacrifice accuracy.