Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 1.4 KB

File metadata and controls

17 lines (11 loc) · 1.4 KB

PathfindingMap

Inherits: RefCounted < Object

Description

PathfindingMap is a minimal, reference-counted class that stores essential information needed by Pathfinder2D for grid-based A* pathfinding.

Properties

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.