how to get a actual direction like east - west in unity? : i am using google api for show a map in unity and also genrate object on map's some location from player position now i want to know actual direct it means identy direction  (east-west)  from google map or google api.



 

> i am make a some code but it is not give me actual direction.

     var v = transform.forward;
     v.y = 0;
     v.Normalize();
     
     if (Vector3.Angle(v, Vector3.forward) <= 45.0) {
         Debug.Log("North");
     }
     else if (Vector3.Angle(v, Vector3.right) <= 45.0) {
         Debug.Log("East");
     }
     else if (Vector3.Angle(v, Vector3.back) <= 45.0) {
         Debug.Log("South");
     }
     else {
         Debug.Log("West");
     }
 