跳转到内容

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.

number

BuildNavGridOptions

NavGrid