From 0762a18530b8c9eccaa97c987521b8a912263e03 Mon Sep 17 00:00:00 2001 From: tholan2 <113474323+tholan2@users.noreply.github.com> Date: Wed, 23 Oct 2024 02:10:58 -0400 Subject: [PATCH] Add AstarGrid2D headline to 2D Navigation Overview Resolves #9668 by adding in the request description. This PR adds a short description for AStarGrid2D of its function and use case that was previously missing in the 2D navigation overview page. --- tutorials/navigation/navigation_introduction_2d.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tutorials/navigation/navigation_introduction_2d.rst b/tutorials/navigation/navigation_introduction_2d.rst index cd7eabf42f0..23555e7d1fc 100644 --- a/tutorials/navigation/navigation_introduction_2d.rst +++ b/tutorials/navigation/navigation_introduction_2d.rst @@ -13,6 +13,12 @@ Godot provides the following objects and classes for 2D navigation: The AStar2D class is best suited for cell-based 2D gameplay that does not require actors to reach any possible position within an area but only predefined, distinct positions. +- :ref:`AstarGrid2D` + ``AstarGrid2D`` objects provide an option to find the shortest path between two points on a partial 2D grid. + + The AStarGrid2D class is best suited for cell-based 2D gameplay that only require actors to move between distinct positions on a grid. + AStarGrid2D is better used over AStar2D when applicable as it only requires the region of the grid to be set, rather than manually creating and connecting individual points. + - :ref:`NavigationServer2D` ``NavigationServer2D`` provides a powerful server API to find the shortest path between two positions on an area defined by a navigation mesh.