Does any one know how to control the camera view with only a single joystick? Currently im using a joystick from the switch. Heres my current code.
public class MoveCamera : MonoBehaviour
{
public float speed = 1.0f;
Camera cameraMovement;
void Update ()
{
float xRot = speed * Input.GetAxis("JoyStickX");
float yRot = speed * Input.GetAxis("JoyStickY");
transform.Rotate(xRot, yRot, 0.0f);
}
}
Something like this :
void Update(){
float speed = 3.0f;
float xRot = speed * Input.GetAxis("Vertical");
float yRot = speed * Input.GetAxis("Horizontal");
transform.Rotate(xRot, yRot, 0.0f);
}