five-on-it / packages/catalogue/src/region/terrain / TerrainSurface
Interface: TerrainSurface
Defined in: packages/catalogue/src/region/terrain.ts:74
The ground of a region: its mesh in the game's frame and where its surface is.
Properties
mesh
mesh:
MeshDef
Defined in: packages/catalogue/src/region/terrain.ts:76
The mesh, in the game's frame, around the region's middle.
origin
origin:
object
Defined in: packages/catalogue/src/region/terrain.ts:78
The x and z of the region's south-east corner, corner [0, 0] (m).
x
x:
number
z
z:
number
Methods
heightAt()
heightAt(
x,z):number
Defined in: packages/catalogue/src/region/terrain.ts:80
The height of the mesh's surface at (x, z) (m); 0 off the region.
Parameters
x
number
z
number
Returns
number