godotengine / godot-docs

Godot Engine official documentation
https://docs.godotengine.org
Other
3.94k stars 3.22k forks source link

Using NavigationAgents tutorial provides unworking example #7192

Closed EhoNo1 closed 1 year ago

EhoNo1 commented 1 year ago

Your Godot version: Doc Version: Latest (4.0) Editor Version: 4.0.2.stable

Issue description: Using the provided script template for Actor as Node3D does not produce a working example. Creating a MVP with the script provided does create a moving agent. Adding a call to the set_movement_target() of an arbitrary vector into the _ready() function does not produce any movement either.

Here is a screenshot of the scene tree of the MVP: image And the navigation mesh has been baked: image

URL to the documentation page: https://docs.godotengine.org/en/latest/tutorials/navigation/navigation_using_navigationagents.html

I can provide a copy of my MVP if requested. (Not uploading it in this message because I'm unsure of the generally accepted way to share it.)

mhilbrunner commented 1 year ago

We just merged https://github.com/godotengine/godot-docs/pull/7195 to fix this, thanks for reporting!

The updated version should appear in a bit on the above mentioned latest URL, and on the stable version of that page once we sync that manually, so until then take care to reference the latest version :)