Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question 3rd person camera Y invert

Discussion in 'Cinemachine' started by alexeyterno, Jul 30, 2022.

  1. alexeyterno

    alexeyterno

    Joined:
    May 14, 2019
    Posts:
    10
    How can I invert mouse Y for 3rd person virtual camera?
     
  2. gaborkb

    gaborkb

    Unity Technologies

    Joined:
    Nov 7, 2019
    Posts:
    856
    3rdPersonFollow does not have built-in input.

    But if you are using a freelook or a vcam component that has axis control, then you can invert it there:
    Screen Shot 2022-07-31 at 8.31.04 AM.png
     
  3. alexeyterno

    alexeyterno

    Joined:
    May 14, 2019
    Posts:
    10
    Yes, I'm using a free camera now. But 3rd camera is more interesting and only the reverse direction of Y rotation interferes. It is strange that the 3rd camera doesn't have Y axis inversion option, or manual overriden.
     
  4. gaborkb

    gaborkb

    Unity Technologies

    Joined:
    Nov 7, 2019
    Posts:
    856
    Have a look at this video to see how to set up input for 3rdPersonFollow:
     
  5. alexeyterno

    alexeyterno

    Joined:
    May 14, 2019
    Posts:
    10
    Thanks
    I saw this video and downloaded the project to check it out. Unfortunately, Y rotation is inverted in this project.
     
  6. gaborkb

    gaborkb

    Unity Technologies

    Joined:
    Nov 7, 2019
    Posts:
    856
    The vcam (using 3rdPersonFollow) tracking the player does not have input control. It follows the player's transform, which is controlled by input. If you'd like to invert the Y rotation you'll have to modify the Player Movement Input Controller script found on the Player.
    They talk briefly about this script around 3:45-4:20 in the video.