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

Freelook updates position too late with gravity falling

Discussion in 'Cinemachine' started by syjgin, Jul 20, 2019.

  1. syjgin

    syjgin

    Joined:
    Feb 13, 2015
    Posts:
    136
    I want to orbit freelook camera around flying target, so orbit heights is 3;0;-3. But when I trying to add gravity, camera is can not update it's position in time and distance between camera and target become increasing. Can I avoid this with some settings?
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    Turn all the FreeLook Damping settings to 0, in all the rigs. Then, the camera will keep up perfectly. Afterwards, if you want, gradually increase the damping values until an acceptable compromise is reached.
     
  3. syjgin

    syjgin

    Joined:
    Feb 13, 2015
    Posts:
    136
    Thank you, now all works as expected.
     
    Gregoryl likes this.