Page 1 of 1

Traveling to a J2000 Position

Posted: 11.09.2022, 18:29
by Interlunar
I apologize in advance if the answer to this is obvious, I'm new to Celestia (and programming). I did look over the documentation and example scripts, but I couldn't find a functioning solution.

If I have a set of specific J2000 xyz coordinates, for example:

X position = -847240.652083542
Y position = 1198210.4520832503
Z position = 394340.61068604764

How can I travel/"go to" that point?

Many thanks.

Posted: 12.09.2022, 06:58
by onetwothree
observer::gotolocation() - this function should help you.

Posted: 14.09.2022, 17:20
by Interlunar
observer::gotolocation() - this function should help you.

Thank you for the help. That function seems to be heading in the right direction, but I'll admit I was not able to make it work with J2000.
I'm wondering if it might be possible to go to the J2000 position by listing it in a spacecraft .xyzv file, I'll give that a try also.

Posted: 17.09.2022, 07:30
by EarthMoon
Make an invisible object and visit it.