# Quaternion.LookRotation() not rotating 360 degrees

In my scene I have two cubes one has a tag "Respawn" and another one has the following script attached: 

using UnityEngine;
using System.Collections;

public class NewBehaviourScript : MonoBehaviour {

// Use this for initialization
void Start () {

}
// Update is called once per frame
void Update () {
transform.rotation = Quaternion.LookRotation (GameObject.FindGameObjectWithTag("Respawn").transform.position);
}
}


When I run it and move around my second cube with "Respawn" tag the first cube doesn't always looks at it, at certain point it just starts rotating the opposite side as if it has bounds to it's rotation. What am I doing wrong?

• Not a unity expert, so I'm not posting as a for-sure answer... but does LookRotation need to be relative? like Quaternion.LookRotation( otherObject.transform.position - this.transform.position) ? – david van brink Sep 5 '15 at 17:46
• Thanx that helped – Vadim Tatarnikov Sep 7 '15 at 14:40