find overlap rotation between two vectors[Solved]

public Vector3 v1, v2,v3;

private void Update()

    v3 = 0.5f * (v1 + v2);
    Quaternion Q = Quaternion.LookRotation(v2-v1);
    Collider[] test = Physics.OverlapBox(v3, new Vector3(1, 1, 10), Q);



v3 is the position between v1 and v2 the only thing that I need is the rotation , how can I find it?

The easiest way is to use Quaternion.LookRotation(v2 - v1); This would alight the z axis with your vector between v1 and v2