Cinemachine is a suite of tools that sets up a suite of cameras that improves player capture for dynamic view or improved cutscenes. This recipe implements Cinemachine ClearShot to switch cameras to keep the player within shot. We'll do this by specifying the spine of the human character, which should be kept in the center of the shot as much as possible, and the AI system will decide which camera to select that meets these criteria:
Figure 11.19 – An example of the recipe with the Cinemachine ClearShot component