Search Unity

Relative Dolly?

Discussion in 'Cinemachine' started by mrtenda, Nov 23, 2018.

  1. mrtenda

    mrtenda

    Joined:
    Jun 6, 2017
    Posts:
    73
    Hello! I'd like to have the dolly track itself move with my camera's target, so that the camera is dollying around a moving target.

    While this could probably be hacked together with a simple script on the dolly's transform that copies the position from a target transform, I'm wondering if this is the intended way to achieve this, since it would seem to have multiple downsides (such as not working great outside of play mode).

    Is there a "correct" way I should be doing this? Thanks!
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,719
    You can parent the dolly track to a game object that moves, no problem.