Code:
var temp_pan = atan(my_vector.x/my_vector.y); // Copied from manual
var temp_tilt = asin(my_vector.z/length(my_vector)); // ^
var i;
for(i = 0; i < temp_pan; i++)
{
angle.pan += 1*time_step;
wait(1);
}
for(i = 0; i < temp_tilt; i++)
{
angle.tilt += 1*time_step;
wait(1);
}




Gamestudio: A7.82 Commercial/A8 Commercial
System specs (Laptop):
Windows 7 64bit
DirectX v10.1
Intel Core i7-720QM CPU @ 1,60 GHz
4GB DDR2 Ram
NVIDIA GeForce GT 230M (1024MB)