+1 vote

I'm having a problem with Area2D's colliding with layers they are not supposed to. There are 2 Area2D nodes inside one parent scene, the first one uses layer 3, no mask, and the second uses mask 4, no layer, and they are colliding, the firts one is firing a onarea_entered function. I've changed layers and masks to try any different configuration but they keep colliding! I guess the same thing happened months ago with a different scene, but it was fixed somehow...
How can I fix this, what is happening?!

Godot version Godot Engine v3.2.3
in Engine by (13 points)

1 Answer

0 votes

I think your problem is that the first object has no mask and the second object has no layer. What that means is that they will collide with each other, regardless of the other physcis layers you have in place.
Try creating a separate physics layer for the second object and setting its collision to that layer, and make sure to have the first object mask to that layer. Then the two areas shouldn't collide.

Hope this helps!

by (20 points)

Nope sadly they keep colliding :((

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.