Skip to content

buildOceanMesh

buildOceanMesh(cells, rings, cellSize): MeshData

Defined in: sdk/src/water/waterMesh.ts:29

An ocean of rings rings of cells cells a side (a multiple of four), the innermost with cellSize cells. It reaches cells * cellSize * 2^(rings - 1) / 2 out from its centre.

number

number

number

MeshData