public static double RealMaxAtmosphereAltitude(CelestialBody body) { if (!body.atmosphere) return 0; // Change for 1.0 refer to atmosphereDepth return body.atmosphereDepth; }