direction from 2 points unity code example
Example 1: unity rotation between 2 points
transform.rotation = Quaternion.FromToRotation(Vector3.up, v3Pos2 - v3Pos1);
Example 2: vector between two points unity
Vector3 newVector = targetPoint - initialPoint;