so i am useing unity script to have the camara follow my object when i move it left or right but, it only moves a couple inches. how can i make this camara get right behind the object when i hit “d” to go right?any help thanks
// This complete script can be attached to a camera to make it
// continuously point at another object.
// The target variable shows up as a property in the inspector.
// Drag another object onto it to make the camera look at it.
var target : Transform;
// Rotate the camera every frame so it keeps looking at the target
function Update() {
transform.LookAt(target);
}