How to use Lua to get real time information of spaceship

xjflcf520

Member
Joined
Feb 26, 2021
Messages
70
Reaction score
6
Points
23
Location
Chana
I want to use Lua to display the longitude, latitude and altitude information of the spaceship in real time on the screen, but get_ Globalpos and get_ Equpos gets neither longitude nor latitude
 

N_Molson

Addon Developer
Addon Developer
Donator
Joined
Mar 5, 2010
Messages
9,272
Reaction score
3,244
Points
203
Location
Toulouse
They do, but probably not in a format you expect.

Raw data (for angles) in Orbiter is always expressed in RAD (Radians), and everything related to orientation and relative positions will very probably involve vectors and rotation matrixes at some point. Be sure to read and understand the doc, there's a lot of stuff explained in Orbiter.pdf and the SDK doc.
 

4throck

Enthusiast !
Joined
Jun 19, 2008
Messages
3,502
Reaction score
1,008
Points
153
Location
Lisbon
Website
orbiterspaceport.blogspot.com
You asked the same thing here:

Check my comments there. Probably you want to convert radians to degrees.
 
Top