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

Incorrect NavigationPolygon.add_outline() calculation #80430

Closed
spikeyarmaku opened this issue Aug 8, 2023 · 1 comment
Closed

Incorrect NavigationPolygon.add_outline() calculation #80430

spikeyarmaku opened this issue Aug 8, 2023 · 1 comment

Comments

@spikeyarmaku
Copy link

spikeyarmaku commented Aug 8, 2023

Godot version

v4.1.1.stable.official [bd6af8e]

System information

Godot v4.1.1.stable - Windows 10.0.19045 - Vulkan (Mobile) - dedicated Radeon RX Vega (Advanced Micro Devices, Inc.; 31.0.12027.9001) - AMD Ryzen 5 3600 6-Core Processor (12 Threads)

Issue description

NavigationPolygon.add_outline() produces incorrect result with specific values. However, if I nudge the first point by a tiny amount (the uncommented line in the gif), it works correctly.
navpoly_bug

Steps to reproduce

  • Open the supplied project
  • Select Debug -> Visible Navigation
  • Either comment or uncomment the first line in _ready()
  • Run the project

If the first line in _ready() is commented out (which nudges the first point on the X axis), the issue crops up. If it is uncommented, the issue goes away. Nudging any other point doesn't have an effect on the result.

Minimal reproduction project

polygon2d bug.zip

@smix8
Copy link
Contributor

smix8 commented Aug 9, 2023

Closing as a duplicate of #70823.

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

No branches or pull requests

3 participants