Jump to content

How to determine acceleration felt within capsule


Recommended Posts

Hi all.

So far I have not found a way to measure the acceleration as felt within the capsule. For example, FlightGlobals.Activevessel.acceleration indicates the acceleration of the spacecraft relative to the orbited body (say, Kerbin). So even if you are in a free-fall circular orbit and not feeling any acceleration inside the spacecraft the acceleration will read as not-null towards the ground. Same goes for gforce etc. I could really use a "perceived acceleration" value for multiple purposes in my mod.

Does any of you super-modders have any suggestions for this? Any help appreciated :)

Link to comment
Share on other sites

If you just need to know whether there is any acceleration then you could check whether the game is in a save-able state (I don't know where you can check that, but it's likely to be somewhere).

You could of course calculate it manually. I'm not certain of my orbital mechanics but what about something like:

FlightGlobals.Activevessel.acceleration - FlightGlobals.getGeeForceAtPosition(FlightGlobals.ActiveVessel.ReferenceTransform.position);

i.e. Acceleration with the gravitational component removed.

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