Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

findSeaHeight

findSeaHeight(source, position, options?): number | undefined

Metres above the origin of the sea’s surface at a point, at the tick the read stands on: the map’s sea level plus the waves its Landscape’s sea sets, as the sea draws them, less the drawn mesh’s fade far from the view. A system reads it with its step, and a step’s tick is what a room, a re-run and a replay read alike. Between steps a view reads it with the world at the page’s drawn time, to the fraction of a tick, the time the sea draws at, where readUnixSeconds(world) reads a whole tick, so a float drawn on it rides it smoothly. Over dry land it reads the surface the sea would have there: compare it with the ground’s height. Undefined where no Landscape stands; throws where two do and options names no ground. As Unreal’s GetWaveHeightAtPosition and HDRP’s ProjectPointOnWaterSurface read it.

Parameter Type Default value
source TickSource undefined
position GroundPosition undefined
options SeaHeightOptions noOptions

number | undefined