Changing Orbits

All about writing scripts for Celestia in Lua and the .cel system
Avatar
Topic author
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 18 years 11 months

Changing Orbits

Post #1by Chuft-Captain » 13.01.2006, 22:10

Hi,

Does anyone know if it's possible to use a script to change an object's orbit from it's original .SSC definition?
I was thinking along the line of gradually adjusting the semi-major component so that a few minutes after starting the script, it's in a higher or lower orbit.

I'm currently using a .CEL script, however I'm willing to leearn .CELX and convert my existing script if nescessary to a .CELX if that's the only way to do it.
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

cpotting
Posts: 164
Joined: 18.03.2004
Age: 63
With us: 20 years 8 months
Location: Victoria, BC Canada

Re: Changing Orbits

Post #2by cpotting » 22.01.2006, 21:10

Chuft-Captain wrote:Hi,

Does anyone know if it's possible to use a script to change an object's orbit from it's original .SSC definition?
...
I'm currently using a .CEL script, however I'm willing to leearn .CELX and convert my existing script if nescessary to a .CELX if that's the only way to do it.


Though CELX has more capabilities than CEL, it unfortunately does not allow the position of an object to be manipulated.

I have often wondered why not. Granted, orbiting objects could not be moved because their positions are funcitons of their obital elements and the simulation time, but why not objects defined by .XYZ files. It should be possible to access the XYZ data that Celestia has read and change it in memory.

Again, I have not had the time to really dive into the Celestia code and find out - life keeps getting in the way of doing the "fun" stuff. Otherwise, I would be working on adding observer selection, verbosity settings, object avoidance and positionable objects in CELX right now.
Clive Pottinger
Victoria, BC Canada

Avatar
Topic author
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 18 years 11 months

Post #3by Chuft-Captain » 23.01.2006, 02:55

Thanks Clive,

Since this posting, I have managed to develop a very basic technique which sort of gets around this limitation (in a limited way) in order to simulate the spacecraft Orion docking at Space Station V. It's a real hack, but a means to an end! See:
http://celestiaproject.net/forum/viewtopic.php ... ght=#66980

Regards
Phil
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS


Return to “Scripting”