title: How to rotate player & camera (unity)
body: <p>im making a gravity thing so when you right click it should make the character and camera rotate but im not really sure how to make the camera rotate. this is the code i have for the gravity.</p>
  <pre><code>    if (Input.GetMouseButtonDown(1) &amp;&amp; grounded)
      {
          Physics.gravity = new Vector3(0, 10.0f, 0);
  
      }
      if (Input.GetMouseButtonDown(0) &amp;&amp; grounded)
      {
          Physics.gravity = new Vector3(0, -10.0f, 0);
      }
  </code></pre>