title: Rotate rigidbody with moverotation in the direction of the camera
body: <p>I want to use moverotation to rotate the object in the direction of the Main Camera, like a common third person shooter, but I don't know how to set the quaternion values or otherwise</p>
  
  <pre><code>`using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  
  public class movimento : MonoBehaviour
  {
  
     [SerializeField] float walk = 1;
     [SerializeField] float run = 2;
      Vector3 movement = Vector3.zero;
      private Rigidbody rig;
  
      // Start is called before the first frame update
      void Start()
      {
        rig = GetComponent&lt;Rigidbody&gt;();
      }
  
      // Update is called once per frame
      void Update()
      {
          if (Input.GetKeyDown(KeyCode.LeftShift)) walk = (walk + run);
          if (Input.GetKeyUp(KeyCode.LeftShift)) walk = (walk - run);
  
          float Horizontal = Input.GetAxis("Horizontal");.
          float Vertical = Input.GetAxis("Vertical");
          movement = Camera.main.transform.forward * Vertical + Camera.main.transform.right * Horizontal;
          float origMagnitude = movement.magnitude;
          movement.y = 0f;
          movement = movement.normalized * origMagnitude;
  
      }
  
       private void FixedUpdate ()
      {
          rig.MovePosition(rig.position + movement * walk * Time.fixedDeltaTime);
          Quaternion rotation = Quaternion.Euler(???);
          rig.MoveRotation(rig.rotation * rotation);
  
  
      }
    }`
  </code></pre>