Search Unity

Character rotation issue

Discussion in 'Scripting' started by Shadowing, Jan 20, 2020.

  1. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    1,648
    Anyone have any ideas on what could be causing these character rotation issues
    Character isn't rotating smoothly with the camera

     
  2. alexeu

    alexeu

    Joined:
    Jan 24, 2016
    Posts:
    257
    Not easy to say what is happening since we don't know your camera code...
    This issue could happen when you use Update or FixedUpdate instead of LateUpdate for camera inputs/outputs.
     
  3. Shadowing

    Shadowing

    Joined:
    Jan 29, 2015
    Posts:
    1,648
    Thanks for the reply,

    Ya my character movement Updates with FixedUpdate
    and my camera also updates on Fixed Update.

    I changed the camera to update on LateUpdate but that didn't fix it.

    It says this above the Camera update
    /// Update the camera's position and rotation while the character is alive. Use FixedUpdate because the character operates on a fixed timestep.


    To me it looks like the character isn't lerping correctly when rotating
     
    Last edited: Jan 20, 2020