Creating dynamic cameras with Cinemachine
Cameras are a very important subject in video games. They allow the player to see their surroundings and make decisions based on what they see. The game designer usually defines how they behave to get the exact gameplay experience they want, and that’s no easy task. A lot of behaviors must be layered to get the exact feeling. Also, for cutscenes, it is important to control the path that the camera will be traversing and where the camera is looking to focus the action during those constantly moving scenes.
Cinemachine is Unity’s advanced suite for camera control, enabling developers to craft dynamic and responsive camera behaviors that enhance the gaming experience. In this chapter, we will use the Cinemachine
package to create both the dynamic cameras that will follow the player’s movements, which we will code in Section 3, Elevating Visuals, Effects, and Audio and also the cameras to be used during cutscenes.