GameObject Movement and Rotation script help

Hi,

I am an novice in Unity3D. May someone teach me how to do the following?

I attached an image as an example. How can I create the script so that the cover will be opened to a certain angle along a specify pivot point when I click on the cover. And if I click on the cover again, it will close to it’s original position. If I click any where else other then the cover, nothing should happen.

May someone please help??

Raymond

How’s the teapot model set up? Is the top a separate object or a piece of the same mesh?

Yes, the top is a separate object. It’s another GameObject. How can I move and rotate it to a certain distance when I click on the “top” GameObject?