Search Unity

Why when I set the AIM to pov mode, does the camera rotate like crazy?

Discussion in 'Cinemachine' started by AkhmedAbasov, May 12, 2019.

  1. AkhmedAbasov

    AkhmedAbasov

    Joined:
    Mar 13, 2014
    Posts:
    163
    Why when I set the AIM to pov mode, does the camera rotate like crazy?
    I wanted to limit the rotation of my camera, the necessary settings are in pov mode, but it behaves inadequately.
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,711
    Can you describe a little more precisely the behaviour you are seeing? It's probably just a set-up problem. What exactly are you doing?
     
  3. AkhmedAbasov

    AkhmedAbasov

    Joined:
    Mar 13, 2014
    Posts:
    163
    Actually, I wanted to limit the angles of my third-person camera. This idle free look camera. Is this even possible without a code? I am using the latest version.
     
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,711
    upload_2019-5-13_12-8-22.png

    Also: are you using a FreeLook with the POV aim? Don't do that. Use an ordinary vcam with a transposer.
     
  5. AkhmedAbasov

    AkhmedAbasov

    Joined:
    Mar 13, 2014
    Posts:
    163
    And how to limit the rotation of the camera? Only AIM has these settings.
     
  6. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,711
    Why not add a custom script that monitors and clamps freeLook.m_XAxis.Value and freeLook.m_YAxis.Value? X axis value is in degrees (-180...180) and Y axis range is (0...1).
     
  7. AkhmedAbasov

    AkhmedAbasov

    Joined:
    Mar 13, 2014
    Posts:
    163
    You can add, I just thought it was in the settings))
    By the way, one more question, since I have already begun. Virtual cameras strangely reset the settings. I set up the camera and after some time no other values, it has been many times already. As if they have their own life)) it seems that passes when I save the camera as a prefab. Is it just me?
     
  8. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,711
    Do you have problems when the vcam is NOT a prefab?
     
  9. AkhmedAbasov

    AkhmedAbasov

    Joined:
    Mar 13, 2014
    Posts:
    163
    I do not know, did not check. But I know that while saving the prefab changes, the problem disappears.