Movement stops updating when rotating

Hi,

I have the following code, which updates my game object position:

void FixedUpdate()
  {
    rb.MovePosition (transform.position + (heading * Time.deltaTime * 2));
  }

It works well, but if I try to make my object rotate to face another object, then the object will move a much smaller distance on each update. This is how I’m rotating to face the other object:

    void Update () {
        if(target != null) {
            transform.LookAt(target);
        }
    }

Does anyone knows why this happens, and how can I fix it?

Thanks

Where are you updating the “heading”? if at all…?

I’m setting the heading to transform.forward immediately after instantiating the object, and it’s a Vector3. The purpose of this is to keep moving towards that direction even if the object changes it’s facing direction.