I have come across a lot of math models lately for 3D camera systems. I am stuck on the easiest, which is so frustrating. Basically to calculate all of the trig functions, one has to know 'the angle'. Or 2. I understand that if the spherical nomenclature is applied to the system, and then translated into cartesian coordinates, this would be explanatory. But I have seen programmers use the cartesian without the spherical system as well.

So, in the trig model, where exactly are the angles coming from that when broken down to the unit circle are used for translation and rotation. Is it a single angle for XZ b/c y = 0? I can figure out the rest of the trig math from here if I can imagine the proper use the angles.

my example with 'w' :

Code :if (key=='w') //forwards { float xrotrad, yrotrad; yrotrad = (pRot->yrot / 180 * 3.141592654f); xrotrad = (pRot->xrot / 180 * 3.141592654f); pPos->xpos += float(sin(yrotrad)) ; pPos->zpos -= float(cos(yrotrad)) ; pPos->ypos -= float(sin(xrotrad)) ; }

Where do the rotation angles come from above, yrotrad, xrotrad etc. Are they more for analysis within unit circle, or do they represent a "heading"?

I think I am overthinking this, but there it is. I think I may be getting these mixed up with vectors.