From: Chris Laurel <claurel@ww...> - 2003-04-17 07:24:39
I've implemented time commands for Lua scripts: gettime, settime,
gettimescale, settimescale, and tojulianday. They're all methods of the
celestia object. We could also add gettime and settime methods to the
observer, for setting time independently in different views.
One neat thing you can do with time commands is to write a script that
increments time day by day, pausing briefly each time. Such a script is
useful for viewing phenonmena like the solar analemma--travel to a
location on the surface of the Earth, enable sync orbit mode, and run this
jd = celestia:gettime()
last = jd + 365
jd = jd + 1.0
until jd >= last
With a few more methods added to the object class, we could write a
version that's not Earth specific, querying the seclection for the day and
Get latest updates about Open Source Projects, Conferences and News.