My model is shaking
Hello, I am making a game with an airplane but he is shaking (or the cam).
This is my smooth follow cam:
this.transform.rotation = Quaternion.Lerp(transform.rotation, Target.transform.rotation, Time.deltaTime * 100);
this.transform.LookAt(Target.transform.position + Target.transform.forward * Offset.x, transform.up);
positionTargetUp = Vector3.Lerp(positionTargetUp, (-Target.transform.forward + (Target.transform.up * Offset.y)), Time.fixedDeltaTime * TurnSpeedMult);
Vector3 positionTarget = Target.transform.position + (positionTargetUp * Offset.z);
float distance = Vector3.Distance(positionTarget, this.transform.position);
this.transform.position = Vector3.Lerp(this.transform.position, positionTarget, Time.fixedDeltaTime * (distance * FollowSpeedMult));
-They all are near 0,0,0 -The function is in LateUpdate
Comment
Your answer
Follow this Question
Related Questions
problem ghosting camera with 2 objets 0 Answers
Cinemachine not showing up in toolbar. 0 Answers
Camera Follows 2D player 0 Answers
How I can make my camera keep a distance between two objects? 0 Answers