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

New Alarm type for Body mechanics #103

Closed
TriggerAu opened this issue Jan 9, 2015 · 1 comment
Closed

New Alarm type for Body mechanics #103

TriggerAu opened this issue Jan 9, 2015 · 1 comment

Comments

@TriggerAu
Copy link
Owner

Sunrise
Sunset
etc

@wile1411
Copy link

My wild guess on the direction for the maths involved (probably a much better way to do this):
Establish two tables of static information when a new games starts.

  1. Establish an Epoch reference local time for each body at position equatorial longitude 0 for the UT time of y0-d0-h0-m0-s0 when the game starts.
  2. A table of day lengths for each body (not sure if this is pullable from the API orbit / CB info - if it is, then no lookup needed.)

Knowing what time it is at a certain location should make the calculation for any other location should just involve a greater circle calculation from the known equatorial point / starting time to the required relevant point dragged to the equator and a delta between the epoch and multiple divisions of the day length.

(I think.. :-) )

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

No branches or pull requests

2 participants