Jump to content
  • Advertisement


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


FPS camera !

This topic is 5860 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

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!