Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compute value of g-force in system editor #5658

Merged
merged 2 commits into from
Nov 3, 2023

Conversation

zonkmachine
Copy link
Member

@zonkmachine zonkmachine commented Nov 3, 2023

In the System Editor the surface gravity is presented as acceleration m/s^2.

  • Compute value of 'g' as is done in system-view-ui.lua
  • Format change - add space between value and 'g'.
  • Add the last decimal of standard gravity to it's full 9.80665.

@zonkmachine
Copy link
Member Author

I added the last digit to the gravity constant. This is certainly not important as it's only used for information purposes, and is abbreviated in the game, but that's the complete constant and I couldn't stand seeing one digit left out. OCD'ish.

Merge at will. Please squash... :)

@sturnclaw sturnclaw merged commit 579d5c6 into pioneerspacesim:master Nov 3, 2023
4 checks passed
@zonkmachine zonkmachine deleted the editorgforce branch November 3, 2023 07:40
@impaktor
Copy link
Member

impaktor commented Nov 3, 2023

(technically, G varies quite a bit depending on where on earth you measure it, so no need to specify it with more than 1-2 decimals).

@bszlrd
Copy link
Contributor

bszlrd commented Nov 3, 2023

I agree, one or two decimals is enough in my opinion. We show one on ship screens, and two on the map screen for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants