point between two points unity code example Example: unity point between two positions Vector3 medianPoint = (position1 + position2) / 2f;