Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

FPS camera !

This topic is 5678 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello there, I’m writing FPS camera engine ... My only problem is moving forward the camera ! I do it when user pressed Up key: g_vEye += (g_fMoveSpeed * g_vLook) * 0.01; Above code works, too. But it moves the camera in direction vector ... I want to move the camera as usual ... I mean moving camera in Z. I heard something about Facing, but I don’t know how can I write it. Vectors and matrix that i used in program: mtxRot ---> Rotation matrix g_vLook ---> Looking vector g_vRight ---> Right vector g_vUp ---> Up vector g_vEye ---> Camera position

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!