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