buildGroundMesh
buildGroundMesh(
surface):Mesh<PlaneGeometry,Material<MaterialEventMap> |Material<MaterialEventMap>[],Object3DEventMap>
Defined in: packages/engine/src/gameplay/map/groundMesh.ts:86
The ground’s triangles as the page draws them, with no material: what a room bakes its navmesh from, so its paths are the page’s.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
surface |
Pick<GroundSurface, "size" | "segments" | "getHeightAt"> |
Returns
Section titled “Returns”Mesh<PlaneGeometry, Material<MaterialEventMap> | Material<MaterialEventMap>[], Object3DEventMap>