get_overlapping_areas() returns reference to self
Closed this issue · 2 comments
vilnius-leopold commented
Describe the bug
Calling get_overlapping_areas()
on Area2D can return array with reference to self instead of other Area2D
To Reproduce
Steps to reproduce the behavior:
- Create 2D scene containing 2 Area2Ds (Area1, Area2) with CollisionShap2D circles which are overlapping
- In script on scene root inside
_physics_process
callget_overlapping_areas()
on Area1. It returns [Area2] - Calling
get_overlapping_areas()
on Area2. Also returns [Area2]
Expected behavior
Calling Area1.get_overlapping_areas()
should return [Area2]] (which it does)
Calling Area2.get_overlapping_areas()
should return [Area1]] (which it does not)
Environment (please complete the following information):
- OS: Linux, Ubuntu 22.04
- Godot Version v4.2.1
- Source: Plugin from Godot Asset Store (Godot Rapier 2D)
- Plugin Version: 0.5.1
- Rapier Version: 0.17.2 2
vilnius-leopold commented
@Ughuuu Thank you so much! Awesome work!
Ughuuu commented
Np. It was open for quite some time :D. Glad it got fixed.