Install Asset
Install via Godot
To maintain one source of truth, Godot Asset Library is just a mirror of the old asset library so you can download directly on Godot via the integrated asset library browser
![A Star 2D Grid Node thumbnail image](https://img.godotassetlibrary.com/oqoq7xHQo3s4n3Vckg4KUz-S_TrXPYOv3iUDfb2mwtg/rs:fit:640:360:0/g:no/aHR0cHM6Ly91c2VyLWltYWdlcy5naXRodWJ1c2VyY29udGVudC5jb20vMzU2MTkzMjcvMjMzODY1MjIwLTMyMDg3NTVkLTA2NWYtNDZmNC04NTk1LWZjZWI1MTQzNDU2MS5wbmc.webp)
![A Star 2D Grid Node thumbnail image](https://img.godotassetlibrary.com/SCu-wtLUhYrd7ngmq_nD0aq3x0K5rUseu0Ay3gWUROE/rs:fit:640:360:0/g:no/aHR0cHM6Ly95b3V0dS5iZS9mMEdpZk9jcWN4UQ.webp)
![A Star 2D Grid Node thumbnail image](https://img.godotassetlibrary.com/xKB3kAxIEUoCGxL-KPQwuai-Mbe2eD2f536-55Hkqjo/rs:fit:640:360:0/g:no/aHR0cHM6Ly95b3V0dS5iZS9HamxTV044Z3RTNA.webp)
![A Star 2D Grid Node thumbnail image](https://img.godotassetlibrary.com/NNk231dKk7xCEYVmmGALn5FfGaEhINqzpo1l-n8gfsA/rs:fit:640:360:0/g:no/aHR0cHM6Ly95b3V0dS5iZS9SbzlRSFl3TEF3aw.webp)
![A Star 2D Grid Node hero image](https://img.godotassetlibrary.com/IvzMnO_p-58DvOASW8GxJcxIKaA6IHaY9KHPmYyFx1w/rs:fit:1920:1080:0/g:no/aHR0cHM6Ly91c2VyLWltYWdlcy5naXRodWJ1c2VyY29udGVudC5jb20vMzU2MTkzMjcvMjMzODY1MjIwLTMyMDg3NTVkLTA2NWYtNDZmNC04NTk1LWZjZWI1MTQzNDU2MS5wbmc.webp)
Quick Information
![A Star 2D Grid Node icon image](https://img.godotassetlibrary.com/mxL2PLqjLpMIlKTjRaqeRpdf0NVWw2P124Kxzx8Ep_E/rs:fit:50:50:0/g:no/aHR0cHM6Ly91c2VyLWltYWdlcy5naXRodWJ1c2VyY29udGVudC5jb20vMzU2MTkzMjcvMjMwMjQ2MzQyLTM1ZjU0N2M0LTgxZDEtNDU2My04MmFjLTRmYmM4M2EzYTJmMS5wbmc.webp)
A Star 2D Grid Node
A simple implementation for the abstract class AStar2DGrid, used for a better performance pathfinding.
Supported Engine Version
4.0
Version String
1.1.0
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL
godot-astar-2d-grid-node
A simple implementation of a Node for the abstract class AStar2DGrid, that can be used to implement pathfinding.
Preview
Nodes
- AStar2DGridNode
AStar2DGridNode
Properties
AStarGrid2D grid
[ default: AStarGrid2D.new() ]Vector2i grid_size
[ default: Vector2i(32, 32) ]Vector2 cell_size
[ default: Vector2(16, 16) ]Array[Vector2i] disabled_points
[ default: [ ] ]bool enable_grid_during_play
[ default: false ]
Methods
Getters & Setters
Vector2i get_grid_size()
Array[Vector2i] get_disabled_points()
Vector2 get_cell_size()
void set_enable_grid_during_play(new_value: bool)
void set_grid_size(new_value: Vector2i)
void set_cell_size(new_value: Vector2)
void set_disabled_points(new_value: Array[Vector2i])
Path Calculators
Array calculate_point_path(from: Vector2, to: Vector2)
Array calculate_point_path_by_id(from_id: Vector2i, to_id: Vector2i)
Array calculate_id_path(from: Vector2, to: Vector2)
Array calculate_id_path_by_id(from_id: Vector2i, to_id: Vector2i)
Utils
void disable_point(id: Vector2i)
void enable_point(id: Vector2i)
Vector2i get_nearest_id(pos: Vector2)
A simple implementation for the abstract class AStar2DGrid, used for a better performance pathfinding.
Reviews
Quick Information
![A Star 2D Grid Node icon image](https://img.godotassetlibrary.com/mxL2PLqjLpMIlKTjRaqeRpdf0NVWw2P124Kxzx8Ep_E/rs:fit:50:50:0/g:no/aHR0cHM6Ly91c2VyLWltYWdlcy5naXRodWJ1c2VyY29udGVudC5jb20vMzU2MTkzMjcvMjMwMjQ2MzQyLTM1ZjU0N2M0LTgxZDEtNDU2My04MmFjLTRmYmM4M2EzYTJmMS5wbmc.webp)
A Star 2D Grid Node
A simple implementation for the abstract class AStar2DGrid, used for a better performance pathfinding.
Supported Engine Version
4.0
Version String
1.1.0
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL