public static Vector3 GetRightPerpendicular(Vector3 v1, Vector3 v2) { float dx = v2.x - v1.x; float dz = v2.z - v1.z; return new Vector3(dz, v1.y, -dx).normalized; }