Grab+spin+move

anyone saw some open-source or tutorial where u can grab an object and move it around and at the same time rotate the object deppending on the place you grab it…some physics maybe… like a cd-case moving on ice :smiley:

i really don’t no where to start

thx
am