TerrainBand2DData
此内容尚不支持你的语言。
Defined in: sdk/src/spline/terrainBand2D.ts:28
The fields of the TerrainBand2D component.
Properties
Section titled “Properties”collider
Section titled “collider”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
Section titled “edgeColor”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
Section titled “edgeTexture”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
Section titled “edgeTile”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
Section titled “edgeWidth”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
Section titled “resolution”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.