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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
geometry |
PlaneGeometry |
surface |
Pick<GroundSurface, "getHeightAt"> |
Returns
Section titled “Returns”void