Before we give the player any means of moving around, we’re going to provide them with a first- and third-person camera system that lets them turn their character and camera with the mouse. Both systems will be handled by one script, and the player will be able to press a hotkey to smoothly switch from one to the other.
Coding the first-person camera will be a bit simpler. We position it where the player’s eyes would be, and we rotate it based on changes in the mouse position. Move the mouse left, the camera ...