Skip to content

Instantly share code, notes, and snippets.

@mingrui
mingrui / SmoothFollow.cs
Last active July 28, 2017 02:13 — forked from Hamcha/SmoothFollow.cs
Stupid Unity scripts : "Smooth Follow" from Standard Assets With Angle Offset
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