Skip to content

PlanetData

Defined in: sdk/src/terrain/planetPlugin.ts:47

The fields of the Planet component.

cellSize: number

Defined in: sdk/src/terrain/planetPlugin.ts:56

The finest cell of the ground’s mesh, in metres, and how far out the finest cells reach before the ground coarsens (above 1 is further).


collision: boolean

Defined in: sdk/src/terrain/planetPlugin.ts:67

Whether bodies and characters collide with the ground; how far round each thing that moves it is built for collision; its layer and friction.


collisionDistance: number

Defined in: sdk/src/terrain/planetPlugin.ts:68


collisionLayer: number

Defined in: sdk/src/terrain/planetPlugin.ts:69


detail: number

Defined in: sdk/src/terrain/planetPlugin.ts:57


friction: number

Defined in: sdk/src/terrain/planetPlugin.ts:70


generatorVersion: number

Defined in: sdk/src/terrain/planetPlugin.ts:53


gravity: number

Defined in: sdk/src/terrain/planetPlugin.ts:78

How hard the planet pulls what is on it, in metres a second squared at the surface; 0 pulls nothing. Bodies are pulled toward the centre of the nearest planet that pulls (physics3d/planetGravity.ts).


layerColor0: Color

Defined in: sdk/src/terrain/planetPlugin.ts:59

The four layers’ colours: grass, dirt, snow, rock.


layerColor1: Color

Defined in: sdk/src/terrain/planetPlugin.ts:60


layerColor2: Color

Defined in: sdk/src/terrain/planetPlugin.ts:61


layerColor3: Color

Defined in: sdk/src/terrain/planetPlugin.ts:62


layers: string[]

Defined in: sdk/src/terrain/planetPlugin.ts:80

The terrain layers (.esterrainlayer files, up to four) the ground is drawn with, in the order the paint weighs them. Empty draws the four layer colours.


macroScale: number

Defined in: sdk/src/terrain/planetPlugin.ts:64

The size, in metres, of the ground’s own wander in brightness, and how strong it is (0 to 1).


macroVariation: number

Defined in: sdk/src/terrain/planetPlugin.ts:65


provider: string

Defined in: sdk/src/terrain/planetPlugin.ts:51

The generator the ground is made by (registerPlanetProvider), the world it belongs to as the game names it, its version and its seed.


radius: number

Defined in: sdk/src/terrain/planetPlugin.ts:49

The planet’s radius in metres.


sea: boolean

Defined in: sdk/src/terrain/planetPlugin.ts:72

Whether the planet has a sea: a sphere at seaLevel above the radius, which the ground that dips below it stands in.


seaColor: Color

Defined in: sdk/src/terrain/planetPlugin.ts:75

The sea’s colour and how much of it there is over what is under it (0 to 1).


seaLevel: number

Defined in: sdk/src/terrain/planetPlugin.ts:73


seaOpacity: number

Defined in: sdk/src/terrain/planetPlugin.ts:76


seed: number

Defined in: sdk/src/terrain/planetPlugin.ts:54


world: string

Defined in: sdk/src/terrain/planetPlugin.ts:52