Skip to content

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.

Parameter Type
surface Pick<GroundSurface, "size" | "segments" | "getHeightAt">

Mesh<PlaneGeometry, Material<MaterialEventMap> | Material<MaterialEventMap>[], Object3DEventMap>