Jump to content

FlightGlobals.getStaticPressure(vessel.transform.p osition)


Recommended Posts

FlightGlobals.getStaticPressure has changed fundamentally. Originaly it returned the fraction of 1 atmosphere, now after KSP 1.0,

FlightGlobals.getStaticPressure(vessel.transform.position) return the presure in KPascal / m2. that means it is a factor of 100 higher!! I used this getStaticPressure on several places, they they though though I was in an atmosphere of 100000 KiloNewton, causing all kind of extreme effects.

Anyway, you have been warned.

Edited by FreeThinker
Link to comment
Share on other sites

There is an inbuilt converter also in case this changes in the future.

FlightGlobals.getStaticPressure * PhysicsGlobals.kPaToAtmosphere will return the current pressure in Atm instead of kPa. (From memory, the name may be slightly off.)

D.

Link to comment
Share on other sites

In the past I multiplied it with 101.3kPa to get the actual presure. I used it to accurately calculate the static presure of the engines, to calculate the real thrust, now all of that no longer works.

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