Workable FPS Camera System template
I was sitting in my common room and came up with an idea for a workable camera system controlled by the mouse and WASD keys. I know that this is probably a basic technique used in all FPS games but I just want to put this down.
Create a method to poll the X and Y coordinates of the mouse
Reset the Mouse to the center screen position every frame
Poll the offset of the X and Y mouse coordinates from the center of the screen
create a rotation matrix and rotate the lookAt matrix
Create a translation matrix and translate the cameraPosition matrix