LunaMultiplayer / TiltEm

Planetary axial tilt for KSP
MIT License
10 stars 3 forks source link

Find a way to get the correct "Correction value" #9

Closed gavazquez closed 5 years ago

gavazquez commented 5 years ago

Whenever you switch to inverse rotation and tilt the planetarium the orbits of the unloaded vessels are adjusted automatically.

Unfortunately, they are not perfect and I had to use a "correction value"

Images:

With the planetarium not rotated:

image

On the next image the planetarium is rotated and as you can see the orbit is not the same, even tough the orbital parameters are

image

Finally, manually searching for a fixed value, the orbit matches

image

--

This value is specific for a savegame so it might be related with the game time or some other value. Unfortunately I didn't find a way to get it automatically

gavazquez commented 5 years ago

It seems that this value is related to the Planetarium.InverseRotAngle but there must be some operation involved with the orbit.period aswell....

image

image

gavazquez commented 5 years ago

Fixed with https://github.com/LunaMultiplayer/TiltEm/commit/9c03b5c2f49cd5b262bb44b1e05f209fbcd31e66