Cinemachine Follow component
This CinemachineCamera Position Control behavior moves the CinemachineCamera to maintain a fixed offset relative to the Tracking Target. It also applies damping.
The fixed offset can be interpreted in various ways, depending on the Binding Mode.
Properties
Property | Function | |
---|---|---|
Binding Mode | How to use to interpret the offset from the target. | |
World Space | The offset is interpreted in world space relative to the origin of the Follow target. The camera will not change position when the target rotates. | |
Lock To Target | Makes the CinemachineCamera use the local frame of the Follow target. When the target rotates, the camera moves with it to maintain the offset and to maintain the same view of the target. | |
Lock To Target With World Up | Makes the CinemachineCamera use the local frame of the Follow target with tilt and roll set to 0. This binding mode ignores all target rotations except yaw. | |
Lock To Target No Roll | Makes the CinemachineCamera use the local frame of the Follow target, with roll set to 0. | |
Lock To Target On Assign | Makes the orientation of the CinemachineCamera match the local frame of the Follow target, at the moment when the CinemachineCamera is activated or when the target is assigned. This offset remains constant in world space. The camera does not rotate along with the target. | |
Lazy Follow | Lazy follow interprets the offset and damping values in camera-local space. This mode emulates the action a human camera operator would take when instructed to follow a target. The camera attempts to move as little as possible to maintain the same distance from the target; the direction of the camera with respect to the target does not matter. Regardless of the orientation of the target, the camera tries to preserve the same distance and height from it. | |
Follow Offset | The desired offset from the target at which the CinemachineCamera will be positioned. Set X, Y, and Z to 0 to place the camera at the center of the target. The default is 0, 0, and -10, respectively, which places the camera behind the target. | |
Position Damping | How responsively the camera tries to maintain the offset in the x, y, and z axes. Small numbers make the camera more responsive. Larger numbers make the camera respond more slowly. | |
Angular Damping Mode | Can be Euler or Quaternion. In Euler mode, individual values can be set for Pitch, Roll, and Yaw damping, but gimbal lock may become an issue. In Quaternion mode, only a single value is used, but it is impervious to gimbal lock. | |
Rotation Damping | How responsively the camera tracks the target's pitch, yaw, and roll, when in Euler angular damping mode. Small numbers make the camera more responsive. Larger numbers make the camera respond more slowly. | |
Quaternion Damping | How responsively the camera tracks the target's rotation, when in Quaternion Angular Damping Mode. |
Binding Modes
When following a target with an offset from the target, the binding mode defines the coordinate space Unity uses to interpret the camera offset from the target and to apply the damping.
Lock To Target
Makes the CinemachineCamera use the local frame of the Follow target. When the target rotates, the camera rotates with it to maintain the offset and to maintain the same view of the target.
Start |
Pitch, 45 degrees |
Yaw, 45 degrees |
Roll, 45 degrees |
Lock To Target No Roll
Makes the CinemachineCamera use the local frame of the Follow target, with roll set to 0.
Start |
Pitch, 45 degrees |
Yaw, 45 degrees |
Roll, 45 degrees |
Lock To Target On Assign
Makes the orientation of the CinemachineCamera match the local frame of the Follow target, at the moment when the CinemachineCamera is activated or when the target is assigned. This offset remains constant in world space. The camera does not rotate along with the target.
Start |
Pitch, 45 degrees |
Yaw, 45 degrees |
Roll, 45 degrees |
Lock To Target With World Up
Makes the CinemachineCamera use the local frame of the Follow target with tilt and roll set to 0. This binding mode ignores all target rotations except yaw.
Start |
Pitch, 45 degrees |
Yaw, 45 degrees |
Roll, 45 degrees |
World Space
The offset is interpreted in world space relative to the origin of the Follow target. The camera will not change position when the target rotates.
Start |
Pitch, 45 degrees |
Yaw, 45 degrees |
Roll, 45 degrees |
Lazy Follow
Lazy follow interprets the offset and damping values in camera-local space. This mode emulates the action a human camera operator would take when instructed to follow a target.
The camera attempts to move as little as possible to maintain the same distance from the target; the direction of the camera with respect to the target does not matter. Regardless of the orientation of the target, the camera tries to preserve the same distance and height from it.
Start |
Pitch, 45 degrees |
Yaw, 45 degrees |
Roll, 45 degrees |