+1 vote

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.

View image on imgur.com


May someone explain or point a tutorial about this subject?

Thank you in advance and sorry about my english.

in Engine by (91 points)
edited by

1 Answer

0 votes
Best answer

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.

enter image description here
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.

by (3,918 points)
selected by

Thank you very much.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.