Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question How do I change the camera speed sensitivity for third person camera in-game?

Discussion in 'Editor & General Support' started by jcm302, Jul 31, 2021.

Thread Status:
Not open for further replies.
  1. jcm302

    jcm302

    Joined:
    Jul 21, 2018
    Posts:
    2
    Noobie here, the speed of the camera for the Starter Asset third person is too fast how do I change the speed of it in game?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,769
    I would imagine there are properties on the mouse look script in the scene. Look for that and see what can be changed.
     
  3. ghaithnotvertigo

    ghaithnotvertigo

    Joined:
    Nov 3, 2022
    Posts:
    1
    For me it's too slow
     
  4. Forest-LaPointe

    Forest-LaPointe

    Joined:
    Apr 3, 2014
    Posts:
    10
    If you're using the "Starter Assets - Third Person Character Controller"

    There is no sensitivity variable built in, instead they use deltaTime. But you can edit the script to add it.

    Select the "PlayerArmature" GameObject, right click on the "Third Person Controller (Script)" and click "Edit Script"
    Add a new public Vector2 named LookSensitivity (or whatever you want really, but this name makes the most sense to me)
    Hit ctrl+f then type "_cinemachineTargetYaw += _input.look.x * deltaTimeMultiplier;"
    For me these were on lines 201&202
    change them to
    _cinemachineTargetYaw += _input.look.x * deltaTimeMultiplier * lookSensitivity.x;
    _cinemachineTargetPitch += _input.look.y * deltaTimeMultiplier * lookSensitivity.y;
    And you should be good
     
  5. prof_jerz

    prof_jerz

    Joined:
    Dec 16, 2018
    Posts:
    5
    Exactly what I needed! I find 5, 5 feels much better than the default. Thank you so much!
     
Thread Status:
Not open for further replies.