This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class SmoothFollow : MonoBehaviour { | |
// The target we are following | |
public Transform target; | |
// The target angle offset, 180 is in front of the target, 0 is behind the target | |
public float angleOffset; | |
// The distance in the x-z plane to the target |