Unity and Cinemachine — The Transposer Body Option

Photo by Magda Ehlers from Pexels

Transposer

As we learned in the previous article, the Transposer option moves the virtual camera in a fixed offset to the followed target. What does this mean? It means the virtual camera will always be locked to a certain, specified distance from its target.

Cinemachine virtual camera with Body set to Transposer

Follow Offset

The Follow Offset fields are the cornerstone of the Transposer Body option, and every other option determines how the Follow Offset is presented.

Binding Mode

Here are the options available for Binding Mode.

  • Lock To Target On Assign: Makes the orientation of the virtual camera match the local frame of the target from the point where the virtual camera is activated or when the target is assigned. If the target rotates, the virtual camera will not rotate with it.
  • Lock To Target With World Up: Makes the virtual camera use the local frame of the target, with tilt and roll set to zero. The virtual camera will only match the yaw of the target.
  • Lock To Target No Roll: Makes the virtual camera use the local frame of the target, this time with only the roll set to zero.
  • Lock To Target: Makes the virtual camera use the local frame of the target. When the target rotates, the virtual camera will rotate with it to maintain the offset and view of the target.
  • World Space: The offset uses world space relative to the origin of the target. Target rotation will not affect the virtual camera’s position.
  • Simple Follow With World Up: The offset is interpreted in the virtual camera’s local space. It is meant to emulate how a real-world camera operator would follow a target. The virtual camera will attempt to move as little as possible while maintaining the distance from target.

Damping

Finally, depending on which Binding Mode is selected, we will see some selection of Damping options. Damping represents how responsive the virtual camera is to maintaining its position or rotation relative to the target when it is moving. A low value in a damping field represents a rapid response in matching the movements of the target.

Look At What You Follow

Something to keep in mind when using the Transposer option is that the virtual camera isn’t necessarily going to be pointed in the direction you want it to simply from following a target.

Conclusion

That covers the Transposer option for following targets. Next time, we’ll look at the 3rd Person Follow option. 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