Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_overlapping_areas() returns reference to self #36

Closed
vilnius-leopold opened this issue Mar 5, 2024 · 2 comments · Fixed by #38
Closed

get_overlapping_areas() returns reference to self #36

vilnius-leopold opened this issue Mar 5, 2024 · 2 comments · Fixed by #38
Labels
bug Something isn't working

Comments

@vilnius-leopold
Copy link

vilnius-leopold commented Mar 5, 2024

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:

  1. Create 2D scene containing 2 Area2Ds (Area1, Area2) with CollisionShap2D circles which are overlapping
  2. In script on scene root inside _physics_process call get_overlapping_areas() on Area1. It returns [Area2]
  3. 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)

Screenshots
Screenshot from 2024-03-05 21-40-59

Screenshot from 2024-03-05 21-40-36

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
Copy link
Author

vilnius-leopold commented Apr 5, 2024

@Ughuuu Thank you so much! Awesome work!

@Ughuuu
Copy link
Contributor

Ughuuu commented Apr 5, 2024

Np. It was open for quite some time :D. Glad it got fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants