[Solved]Rotate player on y axis using controller

I tried this but this is not working so great:

    void TurningGamePad()
    {
        float speed = 5.0f;
        float v = Input.GetAxis("JoyX") * speed;

        transform.Rotate(0, v, 0);
    }

SOLVED

Nice you solve it. Add SOLVED to the title.
This link help me a lot to learn about rotation:

1 Like

Thanks.