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