how to calculate angle unity code example
Example: how to calculate the angle of a vector in unity
Vector3.Angle(Vector1, Vector2); // returns angle between Vector1 to Vector2
// Vector1 is from and vector 2 is to.
// The result is never greater than 180 degrees.