Third Person Camera with Look Follow x,y axis

Instead of trying to type out what I am trying to do here is a video of the third person camera I’m trying to create. Third Person Camera - YouTube (Sorry for the bad quality)

Place an empty gameObject “camTarget” as a child of the Player in your Hierarchy and put the position and Rotation of where you want the cam. To do this easily, do it in this order:

  • create “camTarget”
  • move it to 0,0,0
  • move your cam into “camTarget”
  • move your cam to 0,0,0
  • move “camTarget” into your player
  • adjust position/rotation of “camTarget” to show the wanted
    perspective.

When done, move your cam out of the hierarchy, so it has no parent.

In Update, Lerp the cams position and rotation to match your camTarget:

float speed = 0.1f;
cam.transform.position = Vector3.Lerp(cam.transform.position, camTarget.transform.position, speed);
cam.transform.rotation = Quaternion.Lerp(cam.transform.rotation, camTarget.transform.rotation, speed);