How to tilt camera downwards?

Does anybody know how can i tilt my camera downwards?

For example i am placing my camera at the top. However, i would like to tilt my camera downwards via is Z-axis while rotating? I am doing it so that my camera is able to focus on my game object while rotating around the terrain.

Right now, my camera can be rotated however it can’t focus the game object. Hence, i need my camera to focus on the game object while rotating as well.

Really thanks in advance and help will be appreciated.

If you want your camera to focus on your game object, use the Transform.LookAt function at the end of all the manipulations you do to the Camera transform. That will ensure the camera always looks at the target.

Do you have an example for that, that i can learn from? i did tried the coding from the scripting references…

var target : Transform;

// Rotate the camera every frame so it keeps looking at the target
function Update() {
transform.LookAt(target);
}

and i did choose the target as my game object. However, it is still not working. My camera y axis doesn’t seem to be tilting downwards while my camera is rotating around my terrain. Any idea what actually causes it? Thanks…