Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AstarGrid2D headline to 2D Navigation Overview #10135

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tholan2
Copy link

@tholan2 tholan2 commented Oct 23, 2024

Resolves #9668 by adding in the requested 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.

Resolves godotengine#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.
``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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, hello and welcome 👋 Well spotted, adding this is useful!

I found the long description in the class reference easier to parse and understand the pros/cons:

AStarGrid2D is a variant of AStar2D that is specialized for partial 2D grids. It is simpler to use because it doesn't require you to manually create points and connect them together. This class also supports multiple types of heuristics, modes for diagonal movement, and a jumping mode to speed up calculation

@mhilbrunner mhilbrunner added enhancement area:manual Issues and PRs related to the Manual/Tutorials section of the documentation topic:navigation labels Oct 23, 2024
Copy link
Contributor

@smix8 smix8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For adding AStarGrid2D to the overview.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:manual Issues and PRs related to the Manual/Tutorials section of the documentation enhancement topic:navigation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add AstarGrid2D to 2D Navigation Overview?
3 participants