how to find direction between two points in unity code example
Example 1: unity rotation between 2 points
transform.rotation = Quaternion.FromToRotation(Vector3.up, v3Pos2 - v3Pos1);
Example 2: unity point between two positions
Vector3 medianPoint = (position1 + position2) / 2f;