What coordinate system are the functions setRotation() and rotate() using? To what does the degree for {x,y,z} relate???
It is really awkward it seems like the rotation is at some point switching axis(!) which is highly confusing. I made an object with a script to turn +10 degrees per second for the y-axis which worked fine. But then I flipped the object and it turned still in the same direction from my point of view??? Why?
Also when I put the objects sideways it still turns around the same axis like before instead in the xy-plain which I have set up for the object. I assumed that we would get and set local object coordinates whit those function but obviously I am wrong. So please tell me developers what system are you relating to for the rotation?