Pan Tilt
This CinemachineCamera Rotation Control behavior pans and tilts the camera in response stimulus, for instance the user’s input. This component does not read user input itself; it can be be driven by an Cinemachine Input Axis Controller component or by some other means that you devise.
Properties:
Property: | Function: | |
---|---|---|
Reference Frame | Defines the reference frame against which pan and tilt rotations are made. | |
Parent Object | If the CinemachineCamera has a parent object, then that parent's local axes will be used as the reference frame. If there is no parent object, world axes will be used. | |
World | World axes will be used as the reference frame. | |
Tracking Target | If the CinemachineCamera has a Tracking target, then that object's local axes will be used as the reference frame. If there is no parent object, world axes will be used. | |
LookAt Target | If the CinemachineCamera has a LookAt target, then that object's local axes will be used as the reference frame. If there is no parent object, world axes will be used. | |
Pan Axis | Controls the horizontal rotation of the Camera. | |
Value | The current value of the axis, in degrees. | |
Center | The value that Recentering will recenter to, if Recentering is enabled. | |
Range | The minimum and maximum for the Value. | |
Wrap | If enabled, the axis wraps around when it reaches the end of its range, forming a loop. | |
Tilt Axis | Controls the vertical rotation of the Camera. | |
Value | The current value of the axis, in degrees. | |
Center | The value that Recentering will recenter to, if Recentering is enabled. | |
Range | The minimum and maximum for the Value. Must fall inside of [-90, 90]. | |
Wrap | If enabled, the axis wraps around when it reaches the end of its range, forming a loop. | |
Recentering | If enabled for an axis, Recentering will gradually return the axis value to the recentering target. | |
Wait | If recentering is enabled for an axis, it will wait this many seconds after the last user input before beginning the recentering process. | |
Time | The time it takes for the recentering to complete, once it has started. | |
Recenter Target | When Axis Recentering happens, it will recenter towards this target. | |
Axis Center | Recenter to the Center value defined within the axis. | |
Tracking Target Forward | Recenter to the value that aligns with the Tracking Target's forward axis. | |
LookAt Target Forward | Recenter to the value that aligns with the LookAt Target's forward axis. |