Hello all, i would like to know if there is a function or something to change a xyz file while celestia is running, in order to change the tayectory of a satellite.
For example if it has an engine, which is turn on in a specific time, to change its trayectory. Sorry for my poor English, and thank you all.
Is it possible to change the xyz file??
Re: Is it possible to change the xyz file??
Orbits which change dynamically at runtime have to be defined using
ScriptedOrbit, using functions written in Lua.
See http://en.wikibooks.org/wiki/Celestia/T ... iptedOrbit
ScriptedOrbit, using functions written in Lua.
See http://en.wikibooks.org/wiki/Celestia/T ... iptedOrbit
Selden
Re: Is it possible to change the xyz file??
Hi Selden, thank you for your answer. But what I'm trying to do is to generate diferents xyz files with a matlab menu aplication, and then, within a specific time, I want to charge that xyz files, while Celestia is running. Is there any way to do that? Or the only way to change trayectories is by using LUA?
Thanks a lot.
Thanks a lot.
Re: Is it possible to change the xyz file??
Sorry, I don't know of any way to replace trajectory files at runtime when they're explicitly specified using SSC SampledOrbit or SampledTrajectory directives.
One could use a Lua ScriptedOrbit function which gets its coordinates from different files on demand, though.
One could define different objects which use the different trajectories, but without knowing what you're actually trying to accomplish, I don't know if that'd be appropriate.
One could use a Lua ScriptedOrbit function which gets its coordinates from different files on demand, though.
One could define different objects which use the different trajectories, but without knowing what you're actually trying to accomplish, I don't know if that'd be appropriate.
Selden