Unity’s Cinemachine: Follow & Body in Virtual Cameras

Marcus Cohee
2 min readJun 6, 2022

--

Hello all!

Today, I will go over the follow and body components in a virtual camera!

3rd Person Camera

Having a Camera Follow an Object

First, you need to assign the object you wish to follow into the Follow slot. After that, the Body component won’t have the yellow warning sign next to it. Much like the Aim component, you have several different options to manipulate but there is more than one way to follow. Let’s go over them:

  • 3rd Person Follow: By default, the virtual camera will attempt to look over the right shoulder of the object. You can change the viewpoint using offset and change what shoulder to look over with Camera Side. I will go over camera collisions later.
  • Framing Transposer: This one is great for 2D environments since it follows the object using the same conditions as Aim. These include lookahead times, damping, soft zones, and dead zones.
  • Hard Lock To Target: This camera will inherit the targets center position and stick to it. You can rotate it but never move the camera from the object. The only option here is damping.
  • Orbital Transposer: This camera is useful for looking around a scene. By default, the camera will follow the mouse movement when running the program.
  • Tracked Dolly: When using this camera, you must make a path gameobject for it to follow. This camera does not need to follow something but when set to auto dolly, it does. This one pairs well with Aim.
  • Transposer: The camera will follow the object at a single point. You must either set the Aim on the object too or adjust the camera manually. There are some different Binding Modes for this option but most of them are similar, try them out!

That was Follow and Body in Cinemachine. I’m glad I don’t have to program all these functions in my cameras anymore!

Next, I will go over creating a handheld look to my camera!

Thank you for your time!

--

--

Marcus Cohee
Marcus Cohee

Written by Marcus Cohee

I am starting Unity and learning the ropes as I go! Let’s take this journey together!

No responses yet