Third Person Camera Tutorial
This tutorial will show you how to make a third person camera with Camera Path Animator 3.0 like the kind used in the God of War series or Crash Bandicoot. There are some bits of code to go through but it’s all quite easy, I promise!
You’ll find an example scene in this asset and you can play it here.
First we need a level to play with. I’m using the Angry Bots demo from Unity Technologies as it also features a player controlled character that we can use. We have this all set up already so all we need to do is get the camera to follow the player’s character along the camera path.
Create a new Camera Path Animator instance in the scene.
Next we need to lay out the path that our camera will take through the scene.
Un-tick the Play at Start option in the Animator component. We don’t actually use the animator in this example.
Create a new GameObject and attach the script CPEPlayerPathFollow.cs. This will control the camera in a way that we want. Assign the player, camera and path variables as the player character, main scene camera and your camera path respectively.
And now you’re done, the camera will follow the player through the scene while remaining on the path spline.