Skip to main content
GameDev.net gamedev.net
🔒 Locked

FPS camera !

Started by HDATA Nov 2, 2002 at 10:24 AM 0 replies 250+ views
Original Post
HDATA
HDATA
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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.