#Automatic collision shape adjustments to the mesh

5 messages · Page 1 of 1 (latest)

karmic hazel
#

Hello everyone! I am just starting to use Godot after some experience in Unity.

I have built the following hierarchy of nodes, and I want it to be the template "Prefab" to create Inherited Scenes from.

As each car will consist of these parts and will only have a different appearance (defined by the Mesh, right?) I am planning to only swap the resource used in the MeshInstance3D. In

Unity, for such purpose I would use the PolygonCollider3D which automatically adjusts to wrap the mesh. In Godot, however, when I add the CollisionShape3D node, nothing happens.

I know that you can select a mesh and then click Create trimesh collision <something>, but I am curious if it is possible to adjust CollicionShape3D to the MeshInstance3D automatically.

nocturne gale
#

No. Godot's collision shape and collision polygon nodes expect to be given a Resource, which is the actual shape to be used.

and it will not automatically tie it to your mesh - it has no awareness that it has a mesh as an ancestor, let alone that it should create a shape to fit it.

karmic hazel
nocturne gale
#

Nah. people can just scroll down and look at the responses.

#

don't think discord supports it anyway