Page 1 of 1

Automatic Keplerian orbit correction?

Posted: 26.02.2017, 07:28
by john71
Is it possible to implement an automatic Keplerian orbit correction function?

I mean when creating a fictional star system, it would be a huge help!

Celestia should rewrite the ssc files (if and when permitted by the user) to correct the orbital parameters.

Posted: 26.02.2017, 13:59
by selden
Celestia lets you specify a Lua function to calculate an object's location or orientation. What that Lua function does is entirely up to you. It can accept keyboard input or read a file, for example. It can also modify other parameters, not just xyz coordinates. The same kinds of things can be done using an external .celx (lua) script.

For details, see https://en.wikibooks.org/wiki/Celestia/Trajectories#ScriptedOrbit
and
https://en.wikibooks.org/wiki/Celestia/Rotation_Models#ScriptedRotation

Posted: 26.02.2017, 14:59
by john71
Thanks for the info! :)