When you drag the box with the mouse, it is going to rotate according to its center of gravity.
source
run with LR
run with CosmoPlayer