Function: hasAtmosphere()
ts
function hasAtmosphere(config): boolean;Single source of truth for "does this body carry an atmosphere?".
Stars never carry an atmosphere. Every other body type honours atmosphereThickness — a value of 0 (or omitted) means the body is configured without atmosphere and the render layer must skip the playable atmo layer (hex prisms collapse to zero thickness) and the shader-view halo (no atmo shell mounted).
Mirror helper to hasSurfaceLiquid so the lib exposes a consistent vocabulary for "this body has feature X" predicates.
Parameters
| Parameter | Type |
|---|---|
config | { type: BodyType; atmosphereThickness?: number; } |
config.type | BodyType |
config.atmosphereThickness? | number |
Returns
boolean