Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

1 To 1 Mouse/camera Movement For Shooting Game?

Discussion in 'Cinemachine' started by Parappa2, Apr 10, 2019.

  1. Parappa2

    Parappa2

    Joined:
    Sep 9, 2016
    Posts:
    12
    I'm trying to make a 3rd person shooter (like ratchet and clank) and want the camera to be 1 to 1 with the mouse movement like in all other pc shooters.
    I have already set axis acceleration and decceleration to 0
    But cinemachine seems to be doing this thing where if you move the mouse very fast it moves the camera very slowly, seemingly slower than if you just moved the mouse slowly.
    Also "max speed" setting seems to be both the "max speed" and also the general "move speed". Increasing the max speed leads to jittery very fast movement

    How do i get basic shooter camera function? Should I not be using cinemachine for this?
    Settings:
    CMSettings.jpg
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
  3. Parappa2

    Parappa2

    Joined:
    Sep 9, 2016
    Posts:
    12
    Eudaimonium's script for 1:1 mouse movement seems to have worked thanks.
    I do think it should be a built in feature though. I imagine a lot of people are using unity to make shooting games.

    edit:it still doesnt work, move speed is limited when moving the mouse very fast. And sometimes its jittery when starting the game.I will have to try some other solution
     
    Last edited: Apr 11, 2019
  4. Asmussend

    Asmussend

    Joined:
    Apr 11, 2019
    Posts:
    1
    What's everyone using to solve this in shooter games?
     
  5. Parappa2

    Parappa2

    Joined:
    Sep 9, 2016
    Posts:
    12
  6. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
  7. Parappa2

    Parappa2

    Joined:
    Sep 9, 2016
    Posts:
    12
    That works, thankyou
     
    Gregoryl likes this.