Inherits: RefCounted < Object
PathfindingMap is a minimal, reference-counted class that stores essential information needed by Pathfinder2D for grid-based A* pathfinding.
| Type | Property | Default | Description |
|---|---|---|---|
TileMapLayer |
layer |
null |
The tilemap layer used as the source for pathfinding. |
Vector2 |
cell_size |
Vector2(0, 0) |
The size of each grid cell in world units. |
Rect2i |
region |
Rect2i(0, 0, 0, 0) |
Corresponds to the region property of AStarGrid2D. |
Array[Vector2i] |
solid_cells |
[] |
Array of coordinates representing non-walkable (solid) cells. |