API Question oapiCameraRotPolar (and Azimuth) problem question

Evgheny

New member
Joined
Oct 18, 2011
Messages
29
Reaction score
0
Points
0
Location
Moscow
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)

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:
Top