- Home /
3rd person camera not smooth
so im trying to make a 3rd person camera to follow my player and it works as i want it but it seems kinda shaky nd not smooth how can i fix this
public Transform player; public Vector3 angle;
void Update ()
{
transform.position = player.position + angle;
}
}
Answer by kalen_08 · Jul 19, 2018 at 01:02 AM
To answer your question: Instead of Update () use LateUpdate () which is called after update therefore after your character moves..
To advance your project (I used to use what your doing but ever since I discovered this I'm going to use it)
Use Cinemachine from the asset store or from the import package and in there it had this kinda thing but with so much more flexability and freedom. Very powerful tool.
Also if you do it your own way... Use Vector3.Lerp (transform.position, player.position + angle, speed * Time.deltaTime);
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Clamping Camera doesn't work 1 Answer
Moving player in direciton camera is facing 1 Answer
Itween, how to mouseclick movement on 3rd person camera 2 Answers