Getting 360 angle between two 3d vectors for Unity3D.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|public static class Utility|
|public static float CalculateAngle(Vector3 from, Vector3 to)|
|return Quaternion.FromToRotation(Vector3.up, to - from).eulerAngles.z;|