Resetting 3D axis?

I have a cube like so.
alt text

When I rotate it round the Y axis, and when I rotate around the X axis, it looks like I rotate it on the Z axis.
alt text

Is it possible reset the Axis so when I rotate the X axis, it would look correct? I’m doing this in code so it’s dynamic wouldn’t know the changes in state.

Pretty sure this is not possible. I know some Matrix math you can do to set the axis of an accelerator for mobile devices but other than that I don’t think this is possible.

If you want those number to be 0 but keep the rotation just add a parent empty gameobject to the cube.