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

NavigationObstacle2D's not displayed correctly in editor #79389

Closed
felbecker opened this issue Jul 12, 2023 · 2 comments · Fixed by #79392
Closed

NavigationObstacle2D's not displayed correctly in editor #79389

felbecker opened this issue Jul 12, 2023 · 2 comments · Fixed by #79392

Comments

@felbecker
Copy link

Godot version

4.1 stable

System information

Windows 11 64bit

Issue description

A dynamic NavigationObstacle2D with radius > 0 is not displayed properly in editor when setting it to a position other than the origin. The center of the avoidance circle is not at the correct position after switching scenes or hiding/showing the obstacle.

It looks like some transform is applied twice.

Steps to reproduce

  • create an empty 2D scene
  • add a NavigationObstacle2D and change it's radius to something greater zero
  • set it to a position other than the origin
  • hide and show the obstacle or switch to another scene and back
  • observe that the center of the avoidance circle is not longer at the correct position

Minimal reproduction project

@AThousandShips
Copy link
Member

Please add a screenshot to illustrate this better

@felbecker
Copy link
Author

Expected and correct until hiding/showing or switching scenes:
expected
Bugged display after until hiding/showing or switching scenes:
bug

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.

3 participants