Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualburnt_casadilla

Posted 15 June 2013 - 10:49 PM

Alrighty so I figured out the problem. I actually had two cameras going at once somehow. So now I'm only using my 3rd person cam. The rotation with a and d work fine, when you can get the model in view...This usually involves some guess work and moving back and forth with w and s. My values for the camera have also changed.

 

I'm still having a hard time actually finding the model and chasing it. I've been messing around with the values a bit but nothing seems to work right


Vector3 camPosition = objectToFollow.Translation + (objectToFollow.Backward * 3) + (objectToFollow.Up * 3);
            Vector3 camTarget = objectToFollow.Translation;

view = Matrix.CreateLookAt(camPosition, camTarget, Vector3.Up);


#1burnt_casadilla

Posted 15 June 2013 - 10:22 PM

Alrighty so I figured out the problem. I actually had two cameras going at once somehow. So now I'm only using my 3rd person cam. The rotation with a and d work fine, when you can get the model in view...This usually involves some guess work and moving back and forth with w and s. My values for the camera have also changed.

Vector3 camPosition = objectToFollow.Translation + (objectToFollow.Forward * 1f) + (objectToFollow.Up * 1f);
            Vector3 camTarget = objectToFollow.Translation + (objectToFollow.Backward * 10) + (Vector3.Up * 8);

            view = Matrix.CreateLookAt(camPosition, camTarget, Vector3.Up);

PARTNERS