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. On February 28th the Feedback website will shut down and be redirected to the Unity forums. See the full post for more information.
    Dismiss Notice
  5. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  6. Unity 2018.3 is now released.
    Dismiss Notice
  7. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Blending position and rotation simultaneously

Discussion in 'Cinemachine' started by MSachs, Oct 10, 2018.

  1. MSachs

    MSachs

    Joined:
    Nov 22, 2017
    Posts:
    99
    Hi,

    I have a FreeLook Camera and a regular Virtual Camera in my scene. The Virtual Camera acts as a top down camera to show my room as a map. The problem is when blending from my freelook to my vcam it is blending the position first and then it is blending the rotation. The other way round it is blending the rotation first and then the position.

    Is there a way the blend the rotation while blending the position so it gives a smoother experience?

    Here is a short video to exactly show what I mean:


    thanks in advance :)
     
  2. MSachs

    MSachs

    Joined:
    Nov 22, 2017
    Posts:
    99
    Any ideas?
     
  3. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    2,062
    The problem you're having is gimbal-lock. This occurs when a camera is looking straight up or straight down. You can mitigate it considerably by not having the top camera look straight down, but instead give it a small angle, say 88 degrees instead of 90. What happens if you try that?
     
    MSachs likes this.
  4. MSachs

    MSachs

    Joined:
    Nov 22, 2017
    Posts:
    99
    Ah that's probably what it was about when I read somewhere VCams don't like looking straight up or down :D
    Was able to reduce the angle even down to 80 degrees which fixed it perfectly! Thanks a lot :)
     
    Gregoryl likes this.