Overhead camera?

I would like to make a camera that would change its position to match the position of a target object, but not rotate with the target object. If you have ever played any of the games of the Escape Velocity series of videogames for Mac, you will know what I mean.

The above link illustrates what I mean. The camera is focused on the ship on the middle.

I am not sure what would be the best way to do this; could I use a script or is there a way to use a joint to do this?

Do you want the camera to be precisely centred on the target or shall you only be able to see it and then move to it when you can’t see it.

I want the camera to remain centered on the target and move with the target object, but not rotate when the target rotates.

Try this

var target : GameObject;
var height_over = 10;
function Update () {
	pos = target.transform.position;
	pos.y += height_over;
	transform.position = pos;
}

That works perfectly! Thank you very much!

No problem :smile: