Search Unity

  1. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  2. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  3. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  4. Participate with students all over the world and build projects to teach people. Join now!
    Dismiss Notice
  5. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  7. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Blending position and rotation simultaneously

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

  1. MSachs

    MSachs

    Joined:
    Nov 22, 2017
    Posts:
    95
    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:
    95
    Any ideas?
     
  3. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    1,815
    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:
    95
    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.