Rotate GameObject 90 degrees where is my flaw?
I am quite new to Unity. On the system I am working on, the gameobject shows some weird behaviour when trying to rotate it.
I have a GameObject that sits at (0,0,0) and looks towards (0,0,1). In my mind, if I rotate the object to (1,0,0) it should rotate 90 degrees, but it doesn't. It rotates 180 degrees around the Y axis. I just don't understand how. To get 90 degrees I need to set the rotation to (1,0,1):
 Debug.DrawRay(transform.position, transform.TransformDirection(transform.forward) * 4f, Color.green);
 transform.rotation = Quaternion.LookRotation(new Vector3(1, 0, 1));
If I check the angle with Vector3.Angle(new Vector3(1, 0, 0), new Vector3(1, 0, 1)); it rightfully says 45 degrees. How does that work?? 
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
               
 
			 
                