Skip to content

raiseHeightfield

raiseHeightfield(geometry, surface): void

Defined in: packages/engine/src/gameplay/map/groundMesh.ts:40

Lifts each vertex of a flat plane to the surface’s height under it. The plane lies in its own x-y, as three builds one, which the ground’s rotation stands up with its y along minus the world’s z.

Parameter Type
geometry PlaneGeometry
surface Pick<GroundSurface, "getHeightAt">

void