Automatic Keplerian orbit correction?

Discussion forum for Celestia developers; topics may only be started by members of the developers group, but anyone can post replies.
Topic author
john71
Posts: 1009
Joined: 10.08.2016
With us: 8 years 3 months

Automatic Keplerian orbit correction?

Post #1by john71 » 26.02.2017, 07:28

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.

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #2by selden » 26.02.2017, 13:59

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
Selden

Topic author
john71
Posts: 1009
Joined: 10.08.2016
With us: 8 years 3 months

Post #3by john71 » 26.02.2017, 14:59

Thanks for the info! :)


Return to “Ideas & News”