Tidewater: Oceans, Lakes, Rivers, Waterfalls, Swimming and Splashes Water Kit
README.md
IslandSea
The island's sea, with no hard dependency on any water kit. When the world holds the Tidewater water kit, the sea is its ocean (WaterBody with kind ocean, or its Ocean); otherwise it is an engine Water box with a flat water surface (@builtin::materials.water), which bodies float on through FluidForces and Physics.water answers for.
Sea.find(): the scene's sea entity (a Tidewater ocean, or a Water box an island laid), or nil.Sea.make(parent, groundId, { seaLevel, size, look, quality }): lays a temporary sea of the island's own.Sea.of(e): the sea component an entity carries and its kind (waterbody,ocean,water).Sea.seaLevel(e): the height of its still surface.Sea.setGround(e, groundId): the ground a Tidewater ocean shoals against.Sea.tidewater(): whether the world holds Tidewater's ocean.
Called by IslandBuilder (finding or making the island's sea) and Footsteps (the sea level and whether there is a sea).