Search Unity

Feedback zTarget group camera

Discussion in 'Cinemachine' started by pandastewie, Jul 12, 2021.

  1. pandastewie

    pandastewie

    Joined:
    Jun 4, 2019
    Posts:
    2
    I'm trying to make a zTarget-like camera for locking on to enemies, that keeps both the player and an enemy in frame and works like the one from PSX Harry Potter games.

    Examples :
    https://gph.is/g/E1xNOnr
    https://gph.is/g/4gyj3N5

    So far this is what I've been able to achive:
    https://gph.is/g/Z7qN17p

    I'm fairly new to cinemachine and don't understand too much of what I'm doing, ¿how could I get to the desire result?

    My settings
    https://imgur.com/Q2bWvLL
    https://imgur.com/9Sngsqa
    https://imgur.com/IZPHd5I
    https://imgur.com/ZH6fAyO
    https://imgur.com/kwGBevB
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,730
    Have a look at the DualTarget sample scene; it is quite close to what you want, I think.
    Instead of the "Aim Target Moved By Mouse", put your enemy character as the LookAt target. The vcam could be set up something like this:

    upload_2021-7-15_10-29-20.png