Search Unity

Problem with Camera and Locked target

Discussion in 'Cinemachine' started by shuskry, Jun 27, 2022.

  1. shuskry

    shuskry

    Joined:
    Oct 10, 2015
    Posts:
    462
    Hi everybody :)

    I'm trying to implement a camera only for locked Target.
    So I created a virtual camera. The problem is that if I move the player to the right , or the left , the camera shifts and does not keep the player and the target in line...


    Here the screenshot:



    I see that a "Target group" is possible by converting the target of "Look at" parameter in cinemachine.
    So I have create one , with 2 target, the player and the ennemy , but nothings change :/...

    here my parameters:




    If someone can explain to me how I can resolve that I really appreciate :D !

    Have a good day !
     
  2. gaborkb

    gaborkb

    Unity Technologies

    Joined:
    Nov 7, 2019
    Posts:
    856
    Could you provide more details on the behaviour you are looking for?
    Have you tried FramingTransposer instead of 3rdPersonFollow? Maybe that's what you are looking for. :)
     
    shuskry likes this.
  3. shuskry

    shuskry

    Joined:
    Oct 10, 2015
    Posts:
    462
    Hello @gaborkb !

    I would like to do like other game like dark souls , or new zelda , when you can lock a ennemy with pressing the joystick.
    The camera stay behind the player , and look at the ennemy .
    In my screen above, the camera look at the ennemy , but don't stay behind the player :/ ( the ennemy is the player the more far from camera)


    Ok so , I tried with FramingTransposer instead of 3rdPersonFollow and it's work ! Even with no composing group, so thanks to you :D !!!
     
    gaborkb likes this.