title: Change camera position when following player in unity
body: <p>I have created a walking character in Unity 3D and I watched a tutorial to make a script that makes the player follow the camera which is good but I want the camera to be lower done and to be rotated more backwards so that the camera can see more of the world as right now not much is visible passed the player. I have attached a link to an image of what it looks like now.</p>
  
  <p><a href="https://i.imgur.com/jQ6efAJ.png" rel="nofollow noreferrer">https://i.imgur.com/jQ6efAJ.png</a>
  as you can see you can't see much of what's in front of the player.</p>
  
  <p>Next I will attach the script and hopefully you can show me what code needs adding or changing to allow my changes to be possible.</p>
  
  <pre><code>    using System.Collections;
      using System.Collections.Generic;
      using UnityEngine;
  
      public class CameraFollow : MonoBehaviour
  {
  public Transform playerObject;
  
  public float distanceFromObject = 6f;
  void Update()
  {
      Vector3 lookOnObject = playerObject.position - transform.position;
      lookOnObject = playerObject.position - transform.position;
      transform.forward = lookOnObject.normalized;
  
      Vector3 playerLastPosition;
      playerLastPosition = playerObject.position - lookOnObject.normalized * distanceFromObject;
  
      playerLastPosition.y = playerObject.position.y + distanceFromObject / 2;
      transform.position = playerLastPosition;
  }
  </code></pre>
  
  <p>Thank you in advance for helping me. This is for a school project so I really hope that your solutions are great and can't wait to hear from you!</p>