what is your current code for camera?
some agk quaternions commands
GetObjectQuatW ( objID )
GetObjectQuatX ( objID )
GetObjectQuatY ( objID )
GetObjectQuatZ ( objID )
GetObjectWorldQuatW ( objID )
GetObjectWorldQuatX ( objID )
GetObjectWorldQuatY ( objID )
GetObjectWorldQuatZ ( objID )
SetObjectRotationQuat ( objID, w, x, y, z )
GetCameraQuatW ( cameraID )
GetCameraQuatX ( cameraID )
GetCameraQuatY ( cameraID )
GetCameraQuatZ ( cameraID )
SetCameraRotationQuat ( cameraID, w, x, y, z )
here is a example to turn around a selected axis:
rem
rem AGK Application 2.0.21
rem MR
setdisplayaspect(320/480.0)
setvirtualresolution(320,480)
setclearcolor(0,0,125)
SetSunActive ( 1 )
SetSunColor ( 255,255,255 )
SetSunDirection ( 0,-1,1 )
CreateObjectcone( 1, 3,3,3 )
setobjectcolor(1,125,125,0,255)
SetObjectposition( 1,0,0,5 )
setcameraposition(1,0,0,-5)
setcameralookat(1,0,0,5,0)
do
//axis
ax#=0.0
ay#=1.0
az#=0.0
//angle in degree
theta# = theta# + 1.0
w# = cos(theta#)
x# = ax# * sin(theta#)
y# = ay# * sin(theta#)
z# = az# * sin(theta#)
SetObjectRotationQuat( 1, w#,x#,y#,z# )
sync()
loop
AGK (Steam) V2.0.21 : Windows 10 Pro 64 Bit : AMD (16.6) Radeon R7 265 : Mac mini OS Sierra (10.12)