Hey, I'm trying to get my camera to work right. But I'm having trouble and I can't figure out why.
I've even looked up tutorials and basically copy-pasted the code from the tutorials and it still wont work.
But, I'm trying to do it the way I learned in school.
Matrix camRot = Matrix.CreateRotationY(mouseX * dt) * Matrix.CreateRotationX(mouseY * dt);
// Rotate like this?
cam *= camRot;
// Fix up the broken axis's
cam.Right = Vector3.Cross(cam.Forward, Vector3.Up);
cam.Right.Normalize();
cam.Up = Vector3.Cross(cam.Backward, cam.Right);
cam.Up.Normalize();
//cam.Forward = Vector3.Cross(Vector3.Up, cam.Right);
//cam.Forward.Normalize();
This code works perfectly fine for rotating left and right, but when I rotate up and down, everything is skewed and awkward looking.