Search Unity

When i set screen X of FreeLook rigs to 0.4f, the target point position is incorrect.

Discussion in 'Cinemachine' started by qufangliu, Jan 15, 2019.

  1. qufangliu

    qufangliu

    Joined:
    Apr 23, 2018
    Posts:
    3
    I want to create a Third Person Over Shoulder Camera, so i change screen X value to 0.4f of three rigs of a FreeLookCamera, but only when the YValue is 0.5f, the target point is in the correct position. And when i change YValue from 0 to 1, the path of target point is a curve but not a straight line.
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,726
    If your target screen position is off-center, then steep camera angles will produce a slight shift. This is due to the math involved.

    A better way to make an over-the shoulder camera is to center the Aim, then apply a camera offset at the end of the pipeline. You can do this with a CinemachineCameraOffset extension.