how to create a TPS camera view?

Hi guys, I just want to know how to put the camera on the back of your character. I do have a script that follows the character but only in one direction. I want the camera to rotate if the character changed direction. for example, if the character turn left, the camera on its back will also turn left.
here is my code for the camera:

var fixedPositionObject : Transform;
var heightOfObject = 2;
function Update () {
fixedPositionObject.position = Vector3(




} provides a very useful tutorials about this here