Search Unity

Preset angle/location for freelook cams during blend

Discussion in 'Cinemachine' started by h1ggs, Aug 17, 2019.

  1. h1ggs

    h1ggs

    Joined:
    Dec 21, 2017
    Posts:
    14
    Hello everyone,

    I have 4 freelook cameras that have specific targets set, and one main camera that overlooks the whole scene.

    I'd like to preset the position, angle and zoom of the 4 freelook cams - so when the user transitions from the main cam to one of these 4 viewpoints, the cam will lerp to the position,angle,zoom set by each of cams.

    Currently when I blend between the cams, the target and appropriate camera is changed, but the position and angle are inhereted from where the main cam was.

    I've tried position the freelook cams where I'd like them, but unity doens't seem to like that.

    Any ideas?

    THANKS
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,728
    Is InheritPosition checked in your FreeLooks? If so, uncheck it.

    upload_2019-8-26_14-2-45.png

    The position of the FreeLooks is set procedurally by the FreeLook script - you can't alter it manually except by setting the inputs that are used to calculate the position. In particular, you can manipulate the FreeLook's horizontal and vertical axis.Value setting.