This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
public-speaking-vr/Assets/Standard Assets/Utility/FollowTarget.cs

19 lines
342 B
C#
Raw Normal View History

2016-10-10 21:29:15 -05:00
using System;
using UnityEngine;
namespace UnityStandardAssets.Utility
{
public class FollowTarget : MonoBehaviour
{
public Transform target;
public Vector3 offset = new Vector3(0f, 7.5f, 0f);
private void LateUpdate()
{
transform.position = target.position + offset;
}
}
}