Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Tracked Dolly Player Follow in lower half of screen

Discussion in 'Cinemachine' started by ben4d85, Jun 4, 2022.

  1. ben4d85

    ben4d85

    Joined:
    Dec 26, 2018
    Posts:
    47
    I am using a CinemachineVirtualCamera with:
    • "Body" set to "Tracked Dolly"
    • "Path" set to my Cinemachine Path
    • "Follow" set to my Player game object
    • "Auto Dolly" set to "Enabled"
    This makes the camera follow my player along the path. So far so good.

    My question is: Is it possible to specify an offset, so that rather than Cinemachine keeping my player in the vertical center of the screen, it keeps him in the lower half of the screen instead?

    Basically, like the "Screen Y" property provided by the "Framing Transposer" (but working with "Tracked Dolly").

    PS: No, "Path Offset" cannot be used for this. And no, "Position Offset" does not achieve it either.
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,233
    Set the Aim to Composer and set its Screen Y parameter.
     
  3. ben4d85

    ben4d85

    Joined:
    Dec 26, 2018
    Posts:
    47
    @Gregoryl Thank you, but setting "Screen Y" to anything other than 0.5. causes the camera to rotate on the X axis.

    PS: My game is a 2D top-down game using an orthographic camera, so there must not be any camera rotation.
     
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,233
    In that case your only option is to physically offset the camera by the desired amount. Try adding this extension from the vcam inspector:

    upload_2022-6-4_14-0-5.png
     
    ben4d85 likes this.