Rotating GameObjects OnMouseDrag
I am so close to getting a fully working prototype of my application working. I generate a mesh dynamically based on user input, but then I would like them to be able to rotate it in much the same way objects rotate in the Unity GUI (just the free rotation not the plane constricted versions). I know the OnMouseDrag() method of my class is being called (I put a debug statement in it), but none of the tutorials I have seen online are causing any rotation. Can someone help me out? If I need to brush up on my quaternions I can, but it has been a while.
Once I have the above working I thought it might be neat to have one of the momentum spins where the object continues to rotate if the user releases the mouse while it is still in motion. But first things first, I need to get it rotating.