Unity and Cinemachine — Virtual Camera Body Options

Photo by DSD from Pexels

Initial Setup

Just like with our Aim options, we first need two things: a virtual camera and a game object to Follow. Be sure to set the virtual camera to Follow the game object.

The options for the Body field of a virtual camera.

Do nothing

Our first option is Do nothing, which… does nothing. Or does nothing automatically might be a better way to put it. You might use this option if you wished to use custom scripting for your virtual camera.

3rd Person Follow

The 3rd Person Follow option keeps the virtual camera at a constant position and distance relative to the target while matching the target’s movement and rotation.

The 3rd Person Follow options for the Body section.

Framing Transposer

The Framing Transposer option moves the virtual camera in a fixed screen-space relationship to the specified target. It is primarily designed for 2d and orthographic oriented virtual cameras, but it will work in other scenarios as well.

Hard Lock To Target

With the Hard Lock To Target option, the virtual camera locks onto the target and has the same position as it. It does not, however, rotate with its target.

Orbital Transposer

The Orbital Transposer option moves the virtual camera in a variable relationship to its target. This option can also be configured to accept player input to allow the player to control the position of the virtual camera relative to the followed target.

The Orbital Transposer options for the Body section.

Tracked Dolly

The Tracked Dolly option restricts the virtual camera to only move along a preset path. This path is represented by a Cinemachine Dolly Track object.

The Tracked Dolly options for the Body section.

Transposer

Finally, the default Transposer option moves the virtual camera in a fixed offset to the followed target.

The Transposer options for the Body section.

Conclusion

That gives us a little taste of what options are available for virtual cameras with a specified Follow target. In the next article, we’re going to go a little deeper and examine a few of these options more closely. Until then, thanks for reading.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store