I'm trying to achieve same rotation as in scene editor but with code so object always rotate around selected axis, however if I look at angles(x,y,z) in editor they changes quite randomly
![Local node axis][1]
I've tried to use quaternions, but can't get it working
PS. my bad was using rotation property instead of orientation both SCNVector4, have read doc properly)
Seems you was really close, you had to swap parameters in
GLKQuaternionMultiply
call. I used solution in https://stackoverflow.com/a/39813058/4124265 to achieve rotation only byZ
axis:To rotate arround
Y
: