Time.deltaT ime makes my character freeze...

In my game, I’ve recently had trouble with Time.deltaTime. I’ve used it before and it had worked fine before but,
now when I use it… my character won’t move. With out it, character movement works fine.

public class Player : MonoBehaviour {

    private float inputDirection;               //  x-value of move vector
    private Vector3 moveVector;
    private CharacterController controller;

    // Use this for initialization
    void Start () {
        controller = GetComponent<CharacterController>();
    }
   
    // Update is called once per frame
    void Update () {
        inputDirection = Input.GetAxis("Horizontal");
        moveVector = new Vector3(inputDirection, 0, 0);
        controller.Move(moveVector * Time.deltaTime);
    }
}

Did you check if deltaTime is 0? It happened a few times for me, that “Time.timeScale” was set to 0 in the editor and it carried over to playmode, so everything stands still.

In the TimeManager, time scale is actually set to 1… Not sure what the problem is…

Actually I believe I found the issue. In the Input Manager, my settings were not default and they were messed and switched up. Resetting it solved my problem. Thank you :slight_smile: