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

How do you change position of cam (so that it has more distance from target that it's following)?

Discussion in 'Cinemachine' started by ml785, May 17, 2020.

  1. ml785

    ml785

    Joined:
    Dec 20, 2018
    Posts:
    119
    I recently started using Cinemachine virtual cameras. Sorry for the basic question, but while the FreeLook camera following my Player works great, I don't like how it follows Player so closely.
    Edit: I fixed this by checking "Common Lens" and increasing Field of View.

    However, I am now wondering how to lock Y axis since I only want them to be able to freely look around on the X axis...

    Edit: I found THAT out too. You Enable "Y Axis Recentering" and personally I put 0 for "Wait Time" and "Recentering Time".
    I can't delete the thread, so I hope this helps someone!

    FinalEdit: SEE BETTER SOLUTION by Gregoryl!
     
    Last edited: May 19, 2020
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,623
    It seems that you have found a non-optimal solution. The FreeLook should be used if you want orbiting on both the X and Y axes. If you only want orbiting on the X axis, then you should replace the FreeLook with a much simpler CM VirtualCamera with OrbitalTransposer in Body, and Composer in Aim.

    upload_2020-5-19_8-16-27.png
     
    ml785 likes this.
  3. ml785

    ml785

    Joined:
    Dec 20, 2018
    Posts:
    119
    @Gregoryl Wow, thank you so much!! I'm glad this thread stayed up!