title: Rotation in unity
body: <p>I am trying to rotate a game object using the lerp command, however I am getting the following error:</p>
  
  <blockquote>
    <p>error CS0029: Cannot implicitly convert type <code>float' to
    </code>UnityEngine.Quaternion'</p>
  </blockquote>
  
  <p>This is the code I am using</p>
  
  <pre><code>box.rotation = Quaternion.AngleAxis(NewAngle, Vector3.right);
  boxAngle = box.rotation.x;
  targetAngle = 90.0f;
  NewAngle = Mathf.Lerp(boxAngle, targetAngle, smooth * Time.deltaTime);
  </code></pre>
  
  <p>Could anyone point me in the right direction? What am I doing wrong?</p>