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

Area2D has stange position of colliders #76327

Closed
sergeykorablin opened this issue Apr 21, 2023 · 4 comments · Fixed by #75509
Closed

Area2D has stange position of colliders #76327

sergeykorablin opened this issue Apr 21, 2023 · 4 comments · Fixed by #75509

Comments

@sergeykorablin
Copy link

sergeykorablin commented Apr 21, 2023

Godot version

4.0.2

System information

Fedora Linux 38

Issue description

In the script I use instantiate/add_child to create an object with Area2D that should detect collisions, but it doesn't.
But when I put tscn with this object on scene, it interacts normally.

After some testing and investigation, I found that the colliders are not where they are displayed, they are outside the top of the window and I can interact with them if the second area2d has a negative Y coordinate. Or i can resize window and these invisible area2d (or collision shapes?) will be lit lower than the top side of the window.

p.s. sorry for my English))

Steps to reproduce

Screenshot

Minimal reproduction project

test.zip

@Zireael07
Copy link
Contributor

Without a minimal project, there is NOTHING the team can do.

Attach a project or this will get closed.

@AThousandShips

This comment was marked as outdated.

@sergeykorablin
Copy link
Author

@Zireael07 @AThousandShips
i added a simple project to my first message

@kleonc
Copy link
Member

kleonc commented Apr 22, 2023

Fixed by #75509 (should be included in 4.0.3).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants