unity3d spaceshooter movement
<p><strong>Hi</strong> Folks, i have some problems with the rotation of my spaceship. If i press the left arrow, and switch to the right arrow the rotation is switching instantly. How can i Smooth it up?</p>

<p><strong>Video:</strong>
<a href="https://sendvid.com/fek9izy3" rel="nofollow">https://sendvid.com/fek9izy3</a></p>

<pre><code>void FixedUpdate()
{
    Rigidbody rb = GetComponent&lt;Rigidbody&gt;();
    float moveHorizontal = Input.GetAxis("Horizontal");
    float moveVertical = Input.GetAxis("Vertical");

    Vector3 movement = new Vector3(moveHorizontal, 0.0f, moveVertical);
    rb.velocity = movement * speed;

    rb.position = new Vector3
    (
        Mathf.Clamp(rb.position.x, boundary.xMin, boundary.xMax),
        0.0f,
        Mathf.Clamp(rb.position.z, boundary.zMin, boundary.zMax)
    );

    rb.rotation = Quaternion.Euler(0.0f, 180, rb.velocity.x * -tilt);
}
</code></pre>

<p>}</p>