title: Move UI RectTransform to world position
body: <p>I have a GameObject named <em>Player</em>, and a Canvas. The <em>HealthBar</em> GameObject is a child of the Canvas <em>(Canvas>HealthBar)</em>. I have the HP bar following the player with a script. It is supposed to follow the player at a fixed position above it, so it sits near the top of the sprite.
  Here is the 'follow' part of the HP Follow Script.</p>
  
  <pre><code>        void Update () 
  {
      Vector3 currentPos = transform.position;
      Vector3 playerPos = Camera.main.WorldToViewportPoint (Player.transform.position);
      transform.position = playerPos;
  </code></pre>
  
  <p>The problem is that the HP bar moves with the character, but at a very small fraction of the speed of which the player is moving. For example, if the player moves one unit, the bar moves 0.1 units.</p>
  
  <p>Video of error: <a href="https://streamable.com/vaz7h" rel="noreferrer">https://streamable.com/vaz7h</a></p>