unity 2d how to normalize a vector 2 code example Example: unity normalize vector2 Vector2 pos; Vector2 dir = pos.normalized;