0 votes

So I have this Area2D node called "CoinDetector", and when a coin (StaticBody2D) enters it, it emits the "body entered" signal.
Everything works properly until I set the "monitorable" value in "CoinDetector" to false... Why is this? I really want monitorable turned off, because otherwise it would disrupt some other Area2Ds.
Side note, I've tried messing around physics layers and masks, but it seems no matter what an Area2D will always detect another Area2D, no matter the masks and layers they have. Why?

Godot version v3.4.2.stable.official [45eaa2daf]
in Engine by (12 points)

1 Answer

0 votes

Turning off "monitorable" for an Area2D stops it from, well, monitoring other areas that go through it. Area2D nodes in the same collision layer and mask will detect each other. If an Area2D node is in layer 1 (and only layer 1), it will not be able to detect another Area2D node who's in layer 2.

by (3,144 points)
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.