Original Post
Greetings all, I am having some mental block, and I can't see what I am doing wrong with the way I am calculating the up vector. I calculate my up vector like so
up.x = cos(roll) * sin(yaw) * sin(pitch) - sin(roll) * cos(roll);
up.y = cos(roll) * cos(pitch) ;
up.z = sin(roll) * sin(yaw) + cos(roll) * cos(yaw) * sin(pitch) ;
I know I am doing something stupid, so if someone can shed some light on this, it will be most appreciated! TIA!