Traveling to a J2000 Position

All about writing scripts for Celestia in Lua and the .cel system
Topic author
Interlunar
Posts: 2
Joined: 11.09.2022
With us: 2 years 2 months

Traveling to a J2000 Position

Post #1by Interlunar » 11.09.2022, 18:29

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.

onetwothree
Site Admin
Posts: 706
Joined: 22.09.2018
With us: 6 years 1 month

Post #2by onetwothree » 12.09.2022, 06:58

observer::gotolocation() - this function should help you.

Topic author
Interlunar
Posts: 2
Joined: 11.09.2022
With us: 2 years 2 months

Post #3by Interlunar » 14.09.2022, 17:20

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.

Avatar
EarthMoon
Posts: 200
Joined: 02.07.2022
With us: 2 years 4 months
Location: Germany

Post #4by EarthMoon » 17.09.2022, 07:30

Make an invisible object and visit it.
Crew: "We are orbiting a black hole."
Control Center: "Do not fly too close to the black hole!"
Crew: "OH OOPS..."

Celestia versions:
1.6.3, 1.7.0 sRGB, 1.6.1 ED (plain)

Current projects:
Celestial (a Celestia-like program written in Python)


Return to “Scripting”