Search Unity

top-down camera with Cinemachine

Discussion in 'Cinemachine' started by Aaron-Meyers, Nov 1, 2018.

  1. Aaron-Meyers

    Aaron-Meyers

    Joined:
    Dec 8, 2009
    Posts:
    97
    I'm trying to add a top-down camera to my Cinemachine rig and I'm running into what appears to be crazy gimble lock flips. Here is how the virtual camera is set up: upload_2018-11-1_10-4-43.png

    As the target moves around, the camera appears to rotate pretty wildly and unpredictably.

    Maybe there is a more suitable Body option than Transposer? I imagine I would want something that gives me a way to define the camera's Up vector?

    -A
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    2,146
    Yes, Composer will gimbal lock when looking straight up or down. Transposer is fine. You can try Framing Transposer in Body, and Do Nothing in Aim.
     
    Aaron-Meyers likes this.
  3. Aaron-Meyers

    Aaron-Meyers

    Joined:
    Dec 8, 2009
    Posts:
    97
    Perfect... thanks!