You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But, if I then set the ship navigation layers to 2 as well
The output running the game is
So it has a state of not yet finished navigating, which is odd as I only changed the layer.
If I select layer 2 only:
Then the output is also false:
Is this expected?
I know we can set a target instantly, but I was sent down a bit of a rabbit hole today wondering why my sgents wouldn't move when more than one layer was set :)
If I am being an idiot here, I am really sorry.
Minimal reproduction project (MRP)
Here is the project, I hope it's enough for you to go one.
If you set different navigation_layers than the default you are requesting a repath of the agent as part of the set_navigation_layers() setter function.
If you set different navigation_layers than the default you are requesting a repath of the agent as part of the set_navigation_layers() setter function.
Right! But this is in the IDE not in the code - so before I run the game.
Tested versions
System information
Godot v4.3.stable - Windows 10.0.26100 - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 4070 SUPER (NVIDIA; 32.0.15.6603) - AMD Ryzen 7 3800X 8-Core Processor (16 Threads)
Issue description
I have attached a demo project.
If you have NavigationAgent2D with avoidance enabled, they are by default navigating when first created even though none has been set.
In other words,
navigation_agent_2d.is_navigation_finished() == false
BUT
Only when you have two or more navigation layers selected.
If a single layer is selected all is ok,
navigation_agent_2d.is_navigation_finished() == true
Steps to reproduce
The setup:
velocity_computed
signalAdded the ship to the main:
And running gives this:
This is expected.
But, if I then set the ship navigation layers to 2 as well
The output running the game is
So it has a state of not yet finished navigating, which is odd as I only changed the layer.
If I select layer 2 only:
Then the output is also false:
Is this expected?
I know we can set a target instantly, but I was sent down a bit of a rabbit hole today wondering why my sgents wouldn't move when more than one layer was set :)
If I am being an idiot here, I am really sorry.
Minimal reproduction project (MRP)
Here is the project, I hope it's enough for you to go one.
Nav.zip
The text was updated successfully, but these errors were encountered: