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

NavigationAgent stops working when unpausing and pausing in same frame #78384

Closed
N3sbocaj opened this issue Jun 18, 2023 · 1 comment · Fixed by #75888
Closed

NavigationAgent stops working when unpausing and pausing in same frame #78384

N3sbocaj opened this issue Jun 18, 2023 · 1 comment · Fixed by #75888

Comments

@N3sbocaj
Copy link

Godot version

v4.1.beta.custom_build [a83eb16]

System information

Windows 11

Issue description

NavigationAgent loses its map when unpausing and then pausing in the same frame.

Steps to reproduce

  1. Run minimal reproduction project
  2. Press ui_up to pause game
  3. Press ui_down to unpause, pause then unpause again at once
  4. See that NavigationAgent stops moving since velocity_computed signal stops being called
  5. See that the NavigationAgent's map is printed and is missing even after unpausing

Minimal reproduction project

NavigationAgentBug.zip

@smix8
Copy link
Contributor

smix8 commented Jun 18, 2023

Would be fixed by PR #75888 that adds a "true" pause mode for agents without removing the navigation map.

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