Like I said I'm just going to keep this thread alive as a general purpose math/geometry etc questions place. Here is a line of code I'm not too sure on. We are finding the vector to rotate our up/down view about. I dont' understand why the position is subtracted from the view when calculating the cross product
Again, this is from a tutorial. I don't know if you can answer this question, i.e if you don't know yourself then there must be something I have missed in the tutorial.Code:CVector3 vAxis = Cross(m_vView - m_vPosition, m_vUpVector); vAxis = Normalize(vAxis); // Rotate around our perpendicular axis and along the y-axis RotateView(angleZ, vAxis.x, vAxis.y, vAxis.z);
EDIT: Incidentally the author's name is 'DigiBen'