Function: bodyOuterRadius()
ts
function bodyOuterRadius(config, palette?): number;Returns the outermost terrain radius of a body — the base radius plus the tallest extrusion height declared in its palette (or a safe fallback when no palette is attached, matching the tallest generated band).
Any spherical shell that must visually clear the hexa terrain (atmosphere, ice) should be anchored to this value.
Parameters
| Parameter | Type | Description |
|---|---|---|
config | BodyConfig | Body configuration — supplies the base radius. |
palette? | TerrainLevel[] | Effective palette used by the body (e.g. body.palette). When omitted, a safe fallback (0.06) is used as an upper bound. |
Returns
number