Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

SmoothFollow - Jerky Camera movements when target moves toward camera

Discussion in 'Scripting' started by K2mia, Feb 9, 2016.

  1. K2mia

    K2mia

    Joined:
    Jan 25, 2016
    Posts:
    12
    I am using the default SmoothFollow that is included with the Utility Standard Assets pack. The follow movement works well for when the target is moving forward (away from the camera) or pivoting left or right but when the player tuns to face the camera the movement gets jerky, the camera moves back away from the player as it advances but kind of swings side to side as it does.

    If the player turns to face the camera and stops moving the SmoothFollow script starts moving behind the player as it is supposed to, the only problem is when the player continuously moves toward the camera while facing it.

    Does anyone know of an easy fix for this?

    Thank you, -K2