Answers for "How to use dot product return value"
http://answers.unity.com/questions/767136/a-problem-with-dot-product.html
The latest answers for the question "How to use dot product return value"Answer by Bunny83
http://answers.unity.com/answers/767152/view.html
Sure, what the dot product of two normalized vectors returns is the cosine between those two angles. What you want is the angle, so all you need to do is to take the arccos of that value to get the angle in radians. To get a value between 0 and 1 you just need to divide by PI. So 0 is 0° and 1 is 180° 0.5 is 90°
float v = Mathf.Acos(dot) / Mathf.PI;Fri, 08 Aug 2014 23:09:13 GMTBunny83