ok i have captured the problem in a small code snippet.
// Project: testrotation
// Created: 2016-06-13
// set window properties
SetWindowTitle( "testrotation" )
SetWindowSize( 1024, 768, 0 )
// set display properties
SetVirtualResolution( 1024, 768 )
SetOrientationAllowed( 1, 1, 1, 1 )
createobjectbox(1,100,100,100)
setcameraposition(1,0,50,-200)
setcameralookat(1,0,0,0,0)
do
rotateobjectlocaly(1,.5)
rotateobjectlocalx(1,.5)
//rotateobjectlocalz(1,-1)
setobjectrotation(1,getobjectanglex(1),getobjectangley(1),0)
print(getobjectanglex(1))
print(getobjectangley(1))
print(getobjectanglez(1))
Print( ScreenFPS() )
Sync()
loop
if you force a certain angle... such as z=0.0 then it eventualy goes crazy and locks up. i tried forcing x to equal 0.0 and rotated around z and y and it was fine.
edit: looks like its x.... lol! you dont even need to rotate the other angles... if your forcing the other angles to 0 then the x will lock at 89. something and stop rotating