Up and Down Too!

I added another axis so that I could control the y axis position as well, here’s the code!

        float xValue = Input.GetAxis("Horizontal");
        float zValue = Input.GetAxis("Vertical");
        float yValue = Input.GetAxis("UpAndDown");
        transform.Translate(xValue, yValue, zValue);
1 Like

Looking good! :smiley:

1 Like

Privacy & Terms