I've got an issue when rotating a jit.gl.camera using jit.anim.node. I intend to rotate the camera using the keyboard and retrieve rotation information via the rotatexyz attribute. Rotation for the X and Y axes is output as expected between -180 and 180 for a full 360 degrees, whereas Z axis rotation goes between -90, 90 and then back to -90 for the full 360 degrees. I have attached a patch with ajit.gl.gridshape in order to demonstrate the problem.
This is an issue as I cannot retrieve Z axis rotation between 0 and 360. Has anyone come across this before? Is there something I'm missing or is there another way I could retrieve rotation information? Any help would be greatly appreciated.