Skip to content

five-on-it / packages/world/src/road-profile / groundUnderRoad

Function: groundUnderRoad() ​

groundUnderRoad(level, x, z, y): number

Defined in: packages/world/src/road-profile.ts:46

The ground carrying a road at (x, z), the road's own height there being y (m): the ground there, or a deck no higher than the road; y itself when nothing within 0.6 m (SURFACE_REACH) of it does.

Parameters ​

level ​

LevelData

x ​

number

z ​

number

y ​

number

Returns ​

number