Search Unity

How can I make a 2D top-down camera follow my player AND the mouse a bit

Discussion in 'Cinemachine' started by Birdmaster98, Jul 20, 2021.

  1. Birdmaster98

    Birdmaster98

    Joined:
    Jul 20, 2021
    Posts:
    1
    Hello everyone! I am currently working on a 2D top-down game and I have a little problem:

    I want the camera to always stay with the player but I also want to be able to look around with my mouse but not far so the player is always in sight. So far I have set up a Cinemachine 2D Camera that follows my player but I dont know what to do so it also considers the mouse position. Can somebody help me? Thanks :)
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,730
    You can add a POV control to the Aim:

    upload_2021-7-22_6-55-42.png