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

Question How to start moving a dolly track camera between waypoints?

Discussion in 'Cinemachine' started by Chocolade, Jun 27, 2023.

  1. Chocolade

    Chocolade

    Joined:
    Jun 19, 2013
    Posts:
    916
    This is the settings of the DollyTrack1:



    and the virtual cam settings:




    what I want to do is kind of cut scene or a flying camera around the scene like a game preview that the camera is moving around the scene showing around.
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,233
    If it's a cutscene that's using timeline, then the easiest way is to create an animation track and animate the PathPosition. To get smooth movement, it's recommended to use Normalized or Distance position units.

    upload_2023-6-27_11-56-38.png
     
    Chocolade likes this.
  3. Chocolade

    Chocolade

    Joined:
    Jun 19, 2013
    Posts:
    916

    This is the scene it's not my scene but what I want to do is to position a camera at the current position like in the image then the camera should smooth move down to the start of the path and move along the path. path i mean the road between the houses. like for example a first person move on the path but instead only a camera. the problems: 1. how to move the camera smooth down 2. how to find/detect the path of the road? because the path is part of the terrain.

     
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,233
    1. Moving the camera down. Have 2 vcams: one static one up high, and one Tracked Dolly on the path. Start with the first vcam active, then activate the second one and allow the CM brain to do a smooth blend between them.
    2. I don't know. If the road is made with a CinemachinePath or CinemachineSmoothPath behaviour, you could search for it. If not, you'll have to author your own path.