Reputation:
I'm fairly sure the set code should look like this:
function setPYR(float pitch, float yaw, float roll) {
glLoadIdentity();
glRotatef(pitch, 1, 0, 0);
glRotatef(yaw, 0, 1, 0);
glRotatef(roll, 0, 0, 1);
}
How can I get the pitch, yaw and roll from the current modelview matrix?
Upvotes: 2
Views: 4484