var cam : Transform;
var cameraRelativeRight : Vector3;
// Apply a force relative to the camera's x-axis
function Update()
{
cameraRelativeRight = cam.TransformDirection (Vector3.right);
cameraRelativeRight.y = 0;
transform.rotation = Quaternion.RotateTowards (transform.rotation, Quaternion.LookRotation(cameraRelativeRight), 5);
}