Search Unity

camera motion

Discussion in 'Scripting' started by akajoseph344, Jun 15, 2018.

  1. akajoseph344

    akajoseph344

    Joined:
    May 30, 2018
    Posts:
    14
    Hello here!
    I'm on the development of a game and I'm confronted with the camera problem..in fact I would like my camera to follow the cursor and at the same time the player too....a bit like in gtav tps...basically if the player runs and my cursor goes right, the player will have to follow it, but if the cursor goes up or down, the player will not follow...I don't know if I was accurate enough. Kind of like fortnite and stuff. I found a script that I tried to modify, the player is the cursor but when I move the cursor up or down it also follows it, so that's my problem!Here we are hoping to have been as clear as possible...thank you in advance^^!
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,752
    Definitely take a look at Cinemachine. It can probably do 99.9% of what you need.