5 Struct ASTAR_GRID
gullradriel edited this page 2026-10-09 00:55:18 +02:00

ASTAR_GRID

Module: ASTAR: A* pathfinding for 2D/3D grids

Grid structure holding walkability, costs, and dimensions.

#include "n_astar.h"

Public Attributes

Name
int width
grid width (X axis)
uint8_t * walkable
walkability map: 1=passable, 0=blocked
int height
grid height (Y axis)
int depth
grid depth (Z axis, 1 for 2D)
int * cost
per-cell movement cost multiplier (x1000)

Public Attributes Documentation

variable width

int width;

grid width (X axis)

variable walkable

uint8_t * walkable;

walkability map: 1=passable, 0=blocked

variable height

int height;

grid height (Y axis)

variable depth

int depth;

grid depth (Z axis, 1 for 2D)

variable cost

int * cost;

per-cell movement cost multiplier (x1000)