Skip to content

DiagonalMovement

DiagonalMovement = "never" | "always" | "no-corner-cutting"

Defined in: types.ts:25

"never" — 4-connected, orthogonal steps only. "always" — 8-connected; diagonals allowed even when they cut a wall corner. "no-corner-cutting" — 8-connected; a diagonal step is only allowed when both shared orthogonal cells are walkable.

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/pathfinding.md.