Hi, maybe you are looking for this...
Print( "Xangle "+str(GetCameraAngleX(cam1))+" Yangle "+str(GetCameraAngleY(cam1))+" Zangle "+str(GetCameraAngleZ(cam1)))
Y rotation is displayed 0 to 360, Z and X are not and that can be a bit of a pain sometimes.
Here is a little demo code....
// Project: SeeCamAngle
// Created: 21-02-18
// show all errors
SetErrorMode(2)
width# = GetMaxDeviceWidth()
height# = GetMaxDeviceHeight()
SetWindowSize(width#,height#,1)
SetVirtualResolution(width#,height#)
SetSyncRate(30,0)
SetScissor(0,0,0,0)
UseNewDefaultFonts( 1 )
light1=1
CreatePointLight(light1,0,0,0,1000000,255,255,255)
skybox=CreateObjectBox(1000,1000,1000)
SetObjectCullMode(skybox,0)
SetObjectColor(skybox,100,150,200,100)
cam1=1
SetRawMousePosition(width#/2,height#/2)
SetCameraRotation(cam1,0,0,0)
do
mouseX# = (GetRawMouseX()-width#/2)*0.003
mouseY# = (GetRawMouseY()-height#/2)*0.003
RotateCameraLocalX(cam1,mouseY#)
RotateCameraLocalY(cam1,mouseX#)
//Print( ScreenFPS() )
Print( "Xangle "+str(GetCameraAngleX(cam1))+" Yangle "+str(GetCameraAngleY(cam1))+" Zangle "+str(GetCameraAngleZ(cam1)))
Sync()
if GetrawKeyPressed(27) then end
loop
BASIC appeared in May 1964. Lightning flashed, the wind roared and the Earth moved.
And nine months later I was born.
So here I am.
I am Basic.
Code is in my genes.