Search Unity

FreeLookCamera flipping?

Discussion in 'Cinemachine' started by jwvanderbeck, Feb 9, 2019.

  1. jwvanderbeck

    jwvanderbeck

    Joined:
    Dec 4, 2014
    Posts:
    825
    I'm having a problem where the FreeLookCamera at a certain point in the world will suddenly flip around relative to the follow/look target

    https://gyazo.com/8b87c66c56a2c7baf5b34e825c0d7b72

    I don't understand why it is doing this. I even reset the component back to default and just updated the targets and the behaviour is the same.
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,730
    Try changing the binding mode to LockToTargetWithWorldUp.
     
  3. jwvanderbeck

    jwvanderbeck

    Joined:
    Dec 4, 2014
    Posts:
    825
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,730
    Lock To Target tries to put the camera at the given offset from the target, relative to the target's local coords. SimpleFollow will try to move the camera minimally, to maintain the desired distance from the target. So, that flipping was sort of like what a trailer would do if you just dragged the puller around indiscriminately.