Spoiler - Added camera functionality for Mouse/keyboard

I don’t have a controller handy but wanted to figure out how to make the “second stick” work with my mouse movement that only worked if I held down the right mouse button. Pretty straight forward I think.

        if (Input.GetButton("Fire2"))
        {
            armRotation.y += Input.GetAxis("Mouse X") * panSpeed;
            armRotation.x += Input.GetAxis("Mouse Y") * panSpeed;
        }
1 Like

Privacy & Terms