title: Unity - rigidbody MovePosition slows down reaching the target
body: <p>I have a problem. I want my enemy to follow the player and try to hit it with the full speed but I cant achieve it. It appears to have faster speed value when its far away and slows down while getting closer to the player.
  How to make it move at the same speed?</p>
  
  <p><a href="https://i.stack.imgur.com/92jyd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/92jyd.png" alt="enter image description here"></a></p>
  
  <pre class="lang-cs prettyprint-override"><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  
  public class Dotty : MonoBehaviour
  {
      [SerializeField] Transform playerTarget;
      Vector3 direction;
      Rigidbody2D rb;
      float speed = 2.2f;
      void Start()
      {
          rb = GetComponent&lt;Rigidbody2D&gt;();
      }
      void Update()
      {
          direction = playerTarget.position - transform.position;
          float angle = Mathf.Atan2(direction.y, direction.x) * Mathf.Rad2Deg;
          rb.rotation = angle;
      }
  
      private void FixedUpdate() {
          rb.MovePosition(transform.position + direction.normalized * speed);
      }
  }
  </code></pre>