Open nezvers opened 1 week ago
NavigationServer2D returns that it has registered obstacle RID, but debug drawing doesn't look like something was changed.
Debug is drawn by nodes. If you dont use nodes but the server directly you have no debug visuals and need to draw your own debug.
NavigationAgent2D still gives a path through the obstacle place with enabled avoidance.
Avoidance and pathfinding are different systems. RVO Avoidance works with velocities, it has nothing to do with the navigation mesh surface based pathfinding.
The obstacle that was created here would affect the avoidance velocity, it will do nothing for pathfinding. The only thing that affects pathfinding is the navigation mesh surface. The obstacle shape can be baked to the navigation mesh surface when affect_navigation_mesh=true
is enabled but it still needs to be baked with the navigation mesh like any other object that should affect the pathfinding.
That sounds wrong.
Creates a new navigation obstacle.
If NavigationServer doesn't create an actual obstacle than what does?
Tested versions
Reproducible 4.3
System information
Godot v4.3.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 2070 SUPER (NVIDIA; 31.0.15.5186) - Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8 Threads)
Issue description
NavigationServer2D returns that it has registered obstacle RID, but debug drawing doesn't look like something was changed. NavigationAgent2D still gives a path through the obstacle place with enabled avoidance.
Steps to reproduce
Minimal reproduction project (MRP)
navigation_obstacles.zip