Skip to content

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

ParameterType
config{ type: BodyType; atmosphereThickness?: number; }
config.typeBodyType
config.atmosphereThickness?number

Returns

boolean

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