Mesh Library and GridMap

Godot Version

godot 4

Question

Why in the first photo my raycast can’t detect the collision but in the second one they can?
1
image
2
image

I think thats because the mesh library is searching for meshes and uses them and their children. In the first one it doesnt have a collisionbody as child but in the second it does

So the StaticBody is usless in both cases?

No, mesh libraries appear to only look for StaticBodies as children of meshes. If option 2 works for you, then use it.

2 Likes