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





Quick Information

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
2 years 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
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
2 years ago
Git URL
Issue URL