Rotate camera around gameobject

I’m planning to rotate my scene’s camera around a sphere while the camera keeps looking at the sphere…

i’ve already scripted touch navigation, i just need a proper snippet of the stuff i need to use, i can do the rest :slight_smile:

You have the script in standard assets, “Smooth Follow”. And for rotating, make a empty gameObject, that is parented to your sphere, and make it rotate forever.

var speed : float = 5;

function Update() 
{
    transform.Rotate(Vector3.right * Time.deltaTime * speed);
}

– David