Using Input.GetAxis for movement is correct too, right?

// Update is called once per frame
void Update()
{
    Vector3 v3 = new Vector3(Input.GetAxis("Horizontal") * Speed * Time.deltaTime, 0.0f, 0.0f);
    transform.position += v3;
}

Is this code correct, is there a way to make it work better? The ship is a bit “jumpy”. I know there’s FixedUpdate but that’s for Physics stuff, right?

Privacy & Terms