navGridFromTilemapLayer
navGridFromTilemapLayer(
entity,opts):NavGrid
Defined in: ai/nav/navGridFromTilemap.ts:59
Build a NavGrid from a live tilemap layer entity via TilemapAPI.
A tilemap’s row 0 is its top and a NavGrid’s cell 0 its bottom, so the row is
flipped here — no origin could correct that mirroring. origin keeps its
usual meaning: the world centre of the BOTTOM-left cell.
Parameters
Section titled “Parameters”entity
Section titled “entity”number