Rotation (Quaternion.Lerp) not working
I am trying to assign a random rotation to an object over time (animation), but the game object always turns to 180 / -180 (rotation on the z axis) Whats wrong with this code?
 void Update(){
     transform.rotation = Quaternion.Lerp(transform.rotation, new Quaternion(0f, 0f, Random.Range(-145f, -45f), 0f), Time.deltaTime * .05f);
 }
 
 
              
               Comment
              
 
               
              Your answer