LUA Does a global_to_local function exist in lua?

orbob

New member
Joined
Oct 10, 2016
Messages
1
Reaction score
0
Points
0
Hello folks,

I am currently working on a little lua script that adds an autopilot that is capable of holding a position relative to an other spacecraft. At some point I therefore need a conversation of vectors between different coordinate systems.

In the Api_Reference of the SDK I found a VESSEL::Global2Local function that transforms given global coordinates into local ones.
Is there also a equivalent lua function? In the orbiter help I could just find oapi.global_to_equ().
Somewhere in the forums there was allready mentioned that not all functions are available.
If such a function does not exist maybe someone can give me a hint at another method to accomplish this with the given lua functionality.

Thanks in advance
 
Global2Local doesn't seem to be used in "Orbitersdk/samples/LuaScript/LuaInterpreter/Interpreter.cpp", which is the source of the Orbiter's LUA script engine, so no, it isn't implemented.
 
Coordinate Base Changes in Lua

Look within my script addons for many examples of coordinate changes in Lua.

Feel free to use them.

Rgds,

Beep
 
Back
Top