how to find the rotation between two points unity code example
Example: unity rotation between 2 points
transform.rotation = Quaternion.FromToRotation(Vector3.up, v3Pos2 - v3Pos1);
transform.rotation = Quaternion.FromToRotation(Vector3.up, v3Pos2 - v3Pos1);