Skip to content

Function: terrainBandLayout()

ts
function terrainBandLayout(
   radius, 
   coreRadiusRatio, 
   levelCount, 
   atmosphereThickness?): TerrainBandLayout;

Resolve the staircase layout for a body. The returned unit is tuned so the tallest band caps at shell exactly. With the radial partition [core | sol | atmo], shell is the sol band length: (1 - coreRadiusRatio - atmosphereThickness) × radius. Pass 0 (or omit) the atmosphere thickness for legacy callers that treat the whole [core, radius] shell as sol.

Parameters

ParameterType
radiusnumber
coreRadiusRationumber
levelCountnumber
atmosphereThickness?number

Returns

TerrainBandLayout

Distribué sous la licence indiquée dans le dépôt.