surfaceArchetype

function surfaceArchetype
universe/src/archetype.ts:195
surfaceArchetype(body: Body, parentMass: number) → SurfaceArchetype

Which archetype a body's surface belongs to.

Presumes hasSolidSurface; on a giant it returns whatever the density says, which is meaningless rather than wrong. Callers that enumerate — the zoo, the site picker, the descent probe — filter first.

parentMass is the primary's, for a moon — the star's mass is not it, and passing it would call every planet tidally active. Zero, the default, means "nothing raises tides on this", which is the right answer for a planet and the safe answer for a moon whose parent the caller did not look up.

bodyBody
Undocumented
parentMassnumber
Undocumented