Archived

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

HDATA

FPS camera !

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