Hello forum.
I've noticed that I need to double the argument to get correct angle. What is that? Is it my misunderstanding the function, or some other problem?
Here is the code, It was executed only once.
I've executed it in debug mode to see results of every string (results are written in comments)
I use Orbiter 2006P1.
:hmm:
I've noticed that I need to double the argument to get correct angle. What is that? Is it my misunderstanding the function, or some other problem?
Here is the code, It was executed only once.
I've executed it in debug mode to see results of every string (results are written in comments)
Code:
double x = oapiCameraPolar()*DEG; // returns 0
double y = oapiCameraAzimuth()*DEG; // returns 0
oapiCameraRotPolar(90*RAD); // setting 90 degrees
oapiCameraRotAzimuth(90*RAD); // setting 90 degrees
x = oapiCameraPolar()*DEG; // returns 45
y = oapiCameraAzimuth()*DEG; // returns 45
I use Orbiter 2006P1.
:hmm:
Last edited: