Coordinates - getposition()

All about writing scripts for Celestia in Lua and the .cel system
Topic author
Pete
Posts: 3
Joined: 08.02.2007
With us: 17 years 9 months

Coordinates - getposition()

Post #1by Pete » 08.02.2007, 05:18

In my script I am trying to use getposition to record my position in space so that i can later on in the script use setposition to return to the same position. However, I never seem to end up in the same place. For example, if I am looking at the Earth when i use getposition, when i try to return to that position I always end up around 206au away from the Earth. Can someone please tell me why this happens?

Topic author
Pete
Posts: 3
Joined: 08.02.2007
With us: 17 years 9 months

Post #2by Pete » 11.02.2007, 23:55

Never mind. I found the problem, just a silly typo.


Return to “Scripting”