Jump to content

[Answered][1.0] atmosphereScaleHeight of CelestialBody


Recommended Posts

After installing KSP 1.0 I'm getting Build error.

Properties are now missing

where did the property atmosphereScaleHeight of CelestialBody go to?

I originaly use it to calculate the hright of the atmosphere


public static float getMaxAtmosphericAltitude(CelestialBody body)
{
if (!body.atmosphere) return 0;

return (float)-body.atmosphereScaleHeight * 1000.0f * Mathf.Log(1e-6f);
}

Edit, I found a new property called atmosphereDepth, does this give me something like the height of the atmosphere?

Edited by FreeThinker
Link to comment
Share on other sites

Edit, I found a new property called atmosphereDepth, does this give me something like the height of the atmosphere?

For Kerbin, atmosphereDepth is 70000 (which is close to 69km). The numbers I saw for other worlds with atmospheres looked about right, too, so that's the one I'm using until someone who has more time digs through all of the new atmosphere values.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...