using UnityEngine;
using System.Collections;

public class CameraRig : MonoBehaviour {

	public GameObject source;
	Vector3 positionRef;
	
	// Update is called once per frame
	void FixedUpdate () 
	{
		transform.position = Vector3.SmoothDamp(transform.position, source.transform.position, ref positionRef, 0.5f);
		transform.rotation = Quaternion.Slerp(transform.rotation, source.transform.rotation, 1.0f);
	
	}
}
