Consider two vectors starting at the center of the box. They point to the vertex and to the mouse.
That should be the angle to turn the box so that the vertex moves toward the mouse. m,c,v refer to mouse,center,vertex.
Not tested, but the idea looks right.
ATan2( my-cy, mx-cx ) - ATan2( vy-cy, vx-cx )
That should be the angle to turn the box so that the vertex moves toward the mouse. m,c,v refer to mouse,center,vertex.
Not tested, but the idea looks right.