Area3D does not detect Gridmap unless both of them are in the 1st physics layer

Godot Version

4.2.1

Question

Area3D in Godot only detects the Staticbody of a Gridmap if both of them are on physics layer 1. If both of them are on another layer other than that Area3d does not detect the gridmap. However the other physics bodies still work on all layers and for example the Characterbody3D does not go through the gridmap even if it is on another layer than the layer 1. Area3D still detects Staticbody normally in any layer if it is not a child of a mesh in Gridmap. I can not figure out the reason for this. I have tried using the mesh instances trimesh Static body and it did not worked and adding a static body manually did not work either. Can someone please acknowledge me about what is happening and how to fix it and the links to any reference related to this or to the related documentations? Thank you.

Edit: Now the Area3d on body entered signal gets triggered even when it is not in the same layer as the gridmap tile. What is happening?

This shouldnt be the case. Can you send a picture of your area3d-setup (the Inspector options) aswell as the collisionlayers of you gridmap-bodies

Sorry! I did not notice your response and forgot to update the question about what happened. I have get it to work and now I have changed all the collision layers and the gridmaps. I have discovered that the reason for the problem was the gridmap node it self having collision as well as the static bodies of the meshes having collision and because of that I made two gridmap nodes with a separate mesh library each. I originally had two meshes with different collision layers and after this I was somehow able to fix the problem. Thank you for your response.

1 Like

Then please mark this issue as solved

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.