Closed lszl84 closed 2 years ago
Tried in fe93f62 Seems still valid although would be nice if someone else confirms too.
@KoBeWi
I fixed the nav-godot4.zip MRP for Godot 4.0 and 3.5 and cannot reproduce the issue.
The NavigationServer2D returns a path where the endpoint is near pixel-perfect at the location of the global_mouse_position
for every single path request. I explored the entire map making at least 100+ path requests and found no anomalies.
Maybe this issue was only valid for the old navigation implementation and can be closed now?
Godot version: master (947a6636f70ea5a051efd6e470147072f2bc7f13)
OS/device including version: mac OS 10.15.2
Issue description: when using
get_global_mouse_position
andget_simple_path
onNavigation2D
, the generated path is frequently incorrect (just play around with the demo). I am aware of new navigation server in Godot 4 but I guess the backward compatibility should be supported?This works correctly in Godot 3.2
Steps to reproduce: Just run the attached projects and click around to navigate. Nav-godot3 works correctly in Godot 3.2. Nav-godot4 exhibits incorrect behavior in Godot 4.
Minimal reproduction project: nav-godot3.zip nav-godot4.zip
EDIT
Actually, this also does not work with new
NavigationAgent2D
setup withset_target_location
andget_next_location
: godot4-navagent.zip