Describe the bug
The Area2D is able to detect a RigidBody2D on the incorrect layer and emits "body_entered".
To Reproduce
- Create an Area2D + WorldBoundaryShape, set to layer 1 mask 1
- Create a StaticBody2D + WorldBoundaryShape, set to layer 1 mask 1
- Create a RigidBody2D, set to layer 2 mask 1
- Make the Area2D and the StaticBody2D overlap
- Drop the RigidBody2D into the Area2D
Expected behavior
The Area2D should not emit the "body_enter" signal, as they are not on the same layer.
Environment:
- OS: Windows 11
- Version: 0.35.2
- Godot Version: 4.7
Example project(zip)
https://drive.google.com/drive/folders/1Zw8EKNyK8DByqOqjTuURFv9PstT3U3Xe?usp=sharing
Describe the bug
The Area2D is able to detect a RigidBody2D on the incorrect layer and emits "body_entered".
To Reproduce
Expected behavior
The Area2D should not emit the "body_enter" signal, as they are not on the same layer.
Environment:
Example project(zip)
https://drive.google.com/drive/folders/1Zw8EKNyK8DByqOqjTuURFv9PstT3U3Xe?usp=sharing