Skip to content

PlanetRegion

Defined in: sdk/src/terrain/planetProvider.ts:21

What a provider is asked to sample: a list of unit directions from the planet’s centre.

count: number

Defined in: sdk/src/terrain/planetProvider.ts:31


directions: Float32Array

Defined in: sdk/src/terrain/planetProvider.ts:30

count unit directions, x, y, z one after the other.


radius: number

Defined in: sdk/src/terrain/planetProvider.ts:28

The planet’s radius in metres: a provider reasons in metres, a direction is only where.


seed: number

Defined in: sdk/src/terrain/planetProvider.ts:24


version: number

Defined in: sdk/src/terrain/planetProvider.ts:26

The generator version the planet was made with.


world: string

Defined in: sdk/src/terrain/planetProvider.ts:23

The world (a planet) the ground belongs to, as the game names it.