How to use a Dolly Track in Unity

Hernando Nieto Jaramillo
3 min readJul 27, 2021

Using dolly paths

A dolly path is an array of waypoints in a Scene. Use a dolly path to specify a fixed course to position or animate a Virtual Camera. Use the Tracked Dolly algorithm to use a dolly path with your Virtual Camera.

It’s used for a virtual camera to follow a certain game object.

To create a dolly track:

As we already created a CM vcam, we can delete it, rename DollyTrack1 and place it in GameOverCutScene

The dolly track need waypoints to move around.

Select the dolly track, Add a waypoint to the path

Add another waypoint

Select the dolly track and move to an approximate position

If we select 0 and move it forward

If 1 selected

If dolly track selected in hierarchy and the one at right selected

Set its position as this:

Set the CM Full Shot in Body: Tracked dolly.
In Path, drag and drop the DollyTrack game object.
Path Position is the actual waypoint (now is 0). If you change it to 1, the CM will show the waypoint 1.

Setting body
Path position: 0
Path position: 1

Animating Virtual Camera around the dolly track

  • Select the GameOverCutscene and in Timeline, create an animation track. It will ask for an Animator component.
  • Select the Virtual Camera (CM Full Shot). Drag and drop to the Animation track. It will show you the option to create an Animator component. Click on that option.
  • Start Recording
  • Place the white time line in time 0:00 and select the path position 0 in the CM Full Shot
  • Place the whithe time line in 3:00. Set the Path position to 1
  • Stop recording and Play to test

--

--