unity calculate vector between two points code example Example: vector between two points unity Vector3 newVector = targetPoint - initialPoint;