Jump to content

How to detect gravity/gees


Recommended Posts

I'm attempting to find a way to read the surface gravity of the body I'm orbiting.
The API reference says that the GeeASL of Kerbin should be 9.81, but when I read it at the launchpad or in orbit around Kerbin, it reads as "1.00034160493135"

Should I just multiply the result by ~9.8, or is there a more accurate method of getting the number I need?

Link to comment
Share on other sites

I believe the unit of that value is Earth surface gravities, like when people say "An untrained individual not used to the g-straining maneuver can black out between 4 and 6 g, particularly if this is pulled suddenly.", hence 1.000 at Kerbin.

... in fact, that's what the old copy of the API says:

"The gravitational acceleration of the body at sea level, in units of gees (1 gee = 9.81 m/s^2)"

Link to comment
Share on other sites

55 minutes ago, Tompete Kerman said:

So if I'm trying to get the gravitational acceleration pulling me downwards, I'd need to get the vector3 of that and isolate the proper axis?

Only if you're exactly at sea level.

I haven't tested it, but what you're talking about looks like it would be Vessel.graviticAcceleration.

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...