Search Unity

  1. Unity 2019.1 beta is now available.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We're looking for insight from anyone who has experience with game testing to help us better Unity. Take our survey here. If chosen to participate you'll be entered into a sweepstake to win an Amazon gift card.
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Unity 2018.3 is now released.
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Rotating Cinemachine POV through scripts

Discussion in 'Cinemachine' started by sevensixtytwo, Oct 8, 2018.

  1. sevensixtytwo


    Apr 5, 2013
    Hi all.

    So I'm using a Cinemachine POV component to look around with touchsticks by modifying the input value. Is there any way I can orient the camera without using the touchsticks? I'd like to implement a "Reset Vertical Look" or even make the rotation gravitate towards the current softlocked target.

    Experiments with Quaternion.RotateTowards in various configurations have failed to produce any noticable results, at least until I turn off the cinemachine scripts which also disable my input. Directly modifying the input values is pretty innacurate.

    Here's an example of my project's gameplay:
  2. Gregoryl


    Unity Technologies

    Dec 22, 2016
    The axis Input value generates an impulse whose result is to change the axis's Value. You can manipulate the axis.Value directly from script as well.

    The POV component's m_HorizontalAxis.Value and m_VerticalAxis.Value represent the Y and X rotations, in degrees, from world forward if vcam is not parented to anything, or parent's forward if it is.