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;
and pull out the transformations useing mat, mat, mat no problem. now i need the rotation x, y, z. Any one tell me how i get them ?