I’m trying to write a flight simulator, but running into troubles. I have the world coordinate system, W, and the plane coordinate system, F. The jet is always at the origin of F. The jet also always moves along the negative Z-axis of F. So in the red book, it has a code snippet
glRotated(roll, 0.0, 0.0, 1.0); glRotated(pitch, 0.0, 1.0, 0.0); glRotated(heading, 1.0, 0.0, 0.0); glTranslated(-planex, -planey, -planez);
That’s good, and I understand it… But the translate operates in W coordinates, doesn’t it? So how do I convert from F coordinates to W coordinates? Thanks in advance.