title: unity3d: how to make a SpotLight follow an object?
body: <p>I am making an object move in it's update() and turn left right up down according to user input. All I want is to make a spotlight follow the object.
  Object's Rotation: 0,180,0
  SpotLight's Rotation: 90,0,0
  Since the rotations are different( and they need to be like that), I cannot make the light follow the object.
  code :</p>
  
  <pre><code>function Update () {
  
      SetControl(); // Input Stuff... 
  
      transform.Translate (0, 0, objectSpeed*Time.deltaTime);
  
      lightView.transform.eulerAngles=this.transform.eulerAngles;
      lightView.transform.Rotate=this.transform.eulerAngles;
      lightView.transform.Translate(snakeSpeed*Time.deltaTime,0, 0);  //THIS IS INCORRECT
  
  }
  </code></pre>
  
  <p>lightView is simply pointing to the SpotLight.    </p>