I'm having trouble turning equatorial position (longitude, latitude, altitude) into planet relative coordinates, used by the VESSELSTATUS.rpos value.
I'd like to position a vessel at certain position on the planet, but I don't want it to be landed on the ground, so I can't use the vdata[0].x and vdata[0].y, or surf_lon and surf_lat on VESSELSTATUS2.
I need to transform equatorial position into VESSELSTATUS.rpos vector.
I tried oapiEquToLocal, which, from the explanation in the API led me to believe would do the trick, but it doesn't.
After that I started to guess how the coordinate system of a planet is oriented and tried to figure out an appropriate transformation, but now I give up. Could please someone explain...
I'd like to position a vessel at certain position on the planet, but I don't want it to be landed on the ground, so I can't use the vdata[0].x and vdata[0].y, or surf_lon and surf_lat on VESSELSTATUS2.
I need to transform equatorial position into VESSELSTATUS.rpos vector.
I tried oapiEquToLocal, which, from the explanation in the API led me to believe would do the trick, but it doesn't.
After that I started to guess how the coordinate system of a planet is oriented and tried to figure out an appropriate transformation, but now I give up. Could please someone explain...