unity rotate vector by 90 degrees around the y axis code example Example: unity rotate vector Vector3 rotated = Quaternion.AngleAxis(-45, Vector3.up) * vector;