The .drft container · interface
NavPolyMesh
A polygon mesh and where it stands. @driftengine/nav's PolyMesh is one of these.
Explained in The .drft container.
interface NavPolyMeshimport type { NavPolyMesh } from '@driftengine/drft';Properties
| Name | Type | Description |
|---|---|---|
verticesreadonly | Int32Array | x, z per vertex, in cell units. |
vertexCountreadonly | number | |
polysreadonly | Int32Array | maxVertsPerPoly slots per polygon, padded with −1. |
neighboursreadonly | Int32Array | The polygon across each edge, or −1. Same layout as polys. |
polyCountreadonly | number | |
maxVertsPerPolyreadonly | number | |
polyRegionreadonly | Int32Array | Which region each polygon came from. |
originXreadonly | number | |
originZreadonly | number | |
cellSizereadonly | number |