hello everyone.

just wondering if there is any simple way for finding out the new rotation x,y,z of an object after using a rotation on at object.

if i say ‘glRotatef(180f, 0f, 1f, 0f);’ on every update frame. how can i just ask the matrix what the x, y, z of the rotations have been changed to. i wont to save anlges of objects so i can use them later.

i can do a:

float[] mat = new float[16];

gl.glGetFloatv(GL_MODELVIEW_MATRIX, mat);

and pull out the transformations useing mat[12], mat[13], mat[14] no problem. now i need the rotation x, y, z. Any one tell me how i get them ?