Pathfinding in Godot 4.2

Опубликовано: 27 Март 2026
на канале: SRCoder
7,706
176

Godot 4.2 has made some major improvements in it's pathfinding, bringin it in line with the 3d pathfinding.
Basically, now you just create your tilemap with the collisions tiles in place as you would normally, and then you create a NavigationMesh2D to "Bke" the navigation shapes for you. This can save you a lot of time!
In this video, I quickly cover the set up and, as a bonus, create a click to move script for a NavigationAgent2D.
There are a few more improvements we could make but this will hopefully be enough to get you started exploring and experimenting with the new navigation baking system in 2d.