The first thing we’ll do for our project is get some camera movement in working order. The player has to be able to move around the stage to be able to see the whole thing, after all. We’ll allow the player to move the camera with the arrow keys as well as by right-clicking and dragging with the mouse. We’ll also provide the option to use the mouse scroll wheel to zoom in or out, which lets the player control how close their camera is to the stage.
All of the movement will be applied to a Vector3 variable ...