Rotate an object by mouse 360* like simulation

i need to learn how to make 360* rotation object like a simulation such a solar sistem simulation / like when we create new character in mmorpg (we can rotate the character just using wheel mouse or left click drag)…

i’ve searched many website and youtube…
i just can’t find it…
tutorial from here : http://yazevsoft.blogspot.co.id/2015...36216893333584
it doesn’t work… at the end it make error

master , please help …