Unity Cinemachine: How to Create a Dolly/Track Virtual Camera
2 min readJan 3, 2023
Goal: Learn how to create a track dolly in the scene
The tracked dolly camera is another unique camera that limits the camera's body to a predefined track (path).
- A virtual camera that is given a path (track) to follow the player
- Must have both look at and follow properties
- Create a game object called path and attach the cinemachine path script
- The path can be adjusted by adding new waypoints. These waypoints have two transforms one is to ease/smooth the track creating arcs, and the other moves the position.
- Path units -> stop the dolly at specific waypoint #
- Path distance -> Dolly travels the entire distance of the track
- Move the dolly manually or through scripts.
- Auto dolly moves the track according to player movement
Dolly Cart
Instead of the camera following the player, the camera's body is linked to the Cart. As a result, the cart will move independently, and its speed is adjustable.