title: unity rotation difference and direction
body: <p>I would like to know the rotation difference between two objects on one Axis, like for example on Y axis.</p>
  
  <p>I tried using Quaternion.Angle but it calculate whole rotation, not on one axis</p>
  
  <p>using </p>
  
  <blockquote>
    <p>angle=transform.rotation.eulerAngles.y-target.transform.rotation.eulerAngles.y;</p>
  </blockquote>
  
  <p>works,
  however this does not tell me the target's direction compared to me, how many angles to the left or to the right?</p>
  
  <p>edit:
  no it doesn't work, it only works if both transforms' x and z rotation axis is 0.</p>
  
  <p>If, for example I put both start rotation at (349.8176,113.8314,254.5617) 
  ,then I rotate the target 3 degrees to its right, it became (352.7103,113.0266,254.684), which will return an Y angle difference of 0.8 instead of 3</p>