_on_body_entered not working for some bodies

Godot Version

4.2.2

Question

I have some Area3D nodes with the _on_body_entered and _on_body_exited signals hooked up to themselves. These successfully detect one body in the game, but not others. Some of the bodies they do not detect are on the same layers as the one they do detect. Additionally, I have created a small project to reproduce these results, but in that project, all the areas detect all the bodies as they should, despite having identical configurations to the ones in the main project which aren’t detected. Any help on understanding this would be greatly appreciated.

can you show us with screenshots?

Can you share the layers / masks for the bodies not properly detecting?
Can you also share any code for the detection you may have in scripts?

Somehow I fixed this. Originally all the bodies, which are parented to regular Nodes, were all centered in the same place and assigned to their locations upon a certain trigger. That place had them intersecting with the ground on the Y axis. When they are moved above the ground before assigning them their spots, it works. I have no idea why this works, but somehow, it does.

1 Like

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