Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. public static class Utility
  2. {
  3. public static float CalculateAngle(Vector3 from, Vector3 to)
  4. {
  5. return Quaternion.FromToRotation(Vector3.up, to - from).eulerAngles.z;
  6. }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement