Camera zoom out on follow
hey guys
I have this really simple camera follow script set up.
How would I implement something where the camera zooms out as the character moves, reaches a max limit, then when the character stops moving the camera zooms back in again?
using UnityEngine;
public class CameraFollow : MonoBehaviour {
public Transform Player;
public Vector3 Offset;
void LateUpdate ()
{
if (Player != null)
transform.position = Player.position + Offset;
}
}
Answer by omnivore · Mar 30, 2016 at 05:26 PM
doh, just found this.
http://wiki.unity3d.com/index.php/CarSmoothFollow
Thought I'd post it here in case anyone finds the question and is left without an answer.
Your answer
Follow this Question
Related Questions
Sharing ints,Camera position(MOba),warnings,Could loop a fuction in start??? 0 Answers
Camera yMin postion should be restricted to player postion 1 Answer
switch camera to follow from a character to another one 1 Answer
camera not following target after reload 0 Answers
Camera always behind player 0 Answers