Skip to content

TerrainBand2DData

Defined in: sdk/src/spline/terrainBand2D.ts:28

The fields of the TerrainBand2D component.

collider: boolean

Defined in: sdk/src/spline/terrainBand2D.ts:44

Whether the band gives its entity a chain collider along the surface, for a static body to carry.


depth: number

Defined in: sdk/src/spline/terrainBand2D.ts:32

An open spline’s fill reaches this far below its lowest point. A closed one ignores it.


edgeColor: object

Defined in: sdk/src/spline/terrainBand2D.ts:38

The lip’s colour, multiplying the texture under it.

a: number

b: number

g: number

r: number


edgeTexture: number

Defined in: sdk/src/spline/terrainBand2D.ts:40

An image the lip is drawn with, repeating along the surface (grass, snow, a rocky rim). None draws the lip as a flat colour in the fill’s own mesh.


edgeTile: number

Defined in: sdk/src/spline/terrainBand2D.ts:42

The length of one repeat of the lip’s image along the surface, in world units.


edgeWidth: number

Defined in: sdk/src/spline/terrainBand2D.ts:36

How wide the lip along the surface is, drawn over the fill; 0 draws none.


resolution: number

Defined in: sdk/src/spline/terrainBand2D.ts:30

How far apart, along the curve, the points of the outline are: smaller is smoother and costs more triangles.


tile: number

Defined in: sdk/src/spline/terrainBand2D.ts:34

The length of one repeat of the fill’s texture, in world units.