3d rotation by dragging

Hi every one ,:disco:

do any of you have a source or know of a tutorial of 3d rotation for example there is a cube rotating animation in a movie clip (made in swift 3d) and when you click on the figure and dragit to the left it rotates to the left (by changing frames on the animation)

do you get what Iā€™m saying?