Making a camera follow an object without rotation.
Erm… can you give us a bit more to go on?
Make an empty gameobject within the object that is rotating. Have the gameobject be a child of your object and have the camera follow the empty gameobject, but set some script to tell the gameobject not to rotate.
An alternative method I would use: on the camera, add a LateUpdate() method that sets the camera’s position to the position of the GameObject you want it to follow. Then translate it a set distance away in a given direction, and you will have a fixed-direction camera that follows the object. eg:
// Creates a locked-angle follow camera
var camTarget : Transform;
function LateUpdate(){
transform.position = camTarget.position;
transform.Translate(0,5,-10);
transform.LookAt(camTarget);
}
This is basically the most rudimentary camera-chase code with the rotation matching taken out.