Constructors
constructor
- new NavMesh(): RawModule.NavMesh
- new NavMesh(navMesh): RawModule.NavMesh
Properties
m_navMesh
Methods
addTile
- addTile(navMeshData, flags, lastRef, tileRef): number
Parameters
flags: number
lastRef: number
Returns number
decodePolyId
- decodePolyId(polyRef, salt, it, ip): void
Returns void
destroy
- destroy(): void
Returns void
encodePolyId
- encodePolyId(salt, it, ip): number
Parameters
salt: number
it: number
ip: number
Returns number
getMaxTiles
- getMaxTiles(): number
Returns number
getNavMesh
- getNavMesh(): dtNavMesh
getOffMeshConnectionByRef
- getOffMeshConnectionByRef(ref): dtOffMeshConnection
getOffMeshConnectionPolyEndPoints
- getOffMeshConnectionPolyEndPoints(prevRef, polyRef, startPos, endPos): number
Parameters
prevRef: number
polyRef: number
startPos: Vec3
Returns number
getPolyArea
- getPolyArea(ref, area): number
Returns number
getPolyFlags
- getPolyFlags(ref, flags): number
Returns number
getPolyRefBase
- getPolyRefBase(tile): number
Returns number
getTile
- getTile(i): dtMeshTile
getTileAndPolyByRefUnsafe
getTileAt
- getTileAt(x, y, layer): dtMeshTile
Parameters
x: number
y: number
layer: number
getTileByRef
- getTileByRef(ref): dtMeshTile
getTileRef
- getTileRef(tile): number
Returns number
getTileRefAt
- getTileRefAt(x, y, layer): number
Parameters
x: number
y: number
layer: number
Returns number
getTileStateSize
- getTileStateSize(tile): number
Returns number
getTilesAt
- getTilesAt(x, y, maxTiles): RawModule.NavMeshGetTilesAtResult
Parameters
x: number
y: number
maxTiles: number
get_m_navMesh
- get_m_navMesh(): dtNavMesh
initSolo
- initSolo(navMeshData): boolean
Returns boolean
initTiled
- initTiled(params): boolean
Returns boolean
isValidPolyRef
- isValidPolyRef(ref): boolean
Returns boolean
restoreTileState
- restoreTileState(tile, data, maxDataSize): number
Parameters
data: readonly number[]
maxDataSize: number
Returns number
setPolyArea
- setPolyArea(ref, area): number
Returns number
setPolyFlags
- setPolyFlags(ref, flags): number
Returns number
set_m_navMesh
- set_m_navMesh(m_navMesh): void
Returns void