Yeah I'm still trying to figure those tutorials out. The camera ones right?
You can do essentially the same thing that the camera tutorials do in 1/10 the amount of code:
but I don't know how to do collision detection with my camera... = /
float cosYaw = (float)cos(radAngle);
float sinYaw = (float)sin(radAngle);
float sinPitch = (float)sin(57.29577952 * LookUpDown));
float lookAtx = pos.x + cosYaw;
float lookAty = pos. + sinPitch;
float lookAtz = pos.z + sinYaw;
// set the camera
gluLookAt(pos.x, yCam, pos.z,
lookAtx, lookAty, lookAtz,
0.0, 1.0, 0.0);
As for your vector class, I'd have the functions take const Vector3D references so you don't waste any time making a copy... also for functions where you're dividing the x, y and z by the same value, instead calculate the reciprocal once and multiply by that, you'll get a speed boost.