how to rotate object gradualy unity
var scalingFactor = 1;
var rotateTo : Transform;
var rotateFrom : Transform;
if(grounded == false) {
transform.rotation = Quaternion.Slerp(rotateFrom.rotation, rotateTo.rotation, Time.deltaTime/scalingFactor);
}