Skip to content

Instantly share code, notes, and snippets.

View notanecho666's full-sized avatar

Something Something notanecho666

View GitHub Profile
@notanecho666
notanecho666 / 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