Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static class Utility
- {
- public static float CalculateAngle(Vector3 from, Vector3 to)
- {
- return Quaternion.FromToRotation(Vector3.up, to - from).eulerAngles.z;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement