title: Moving a body to specific point [Box2D , Libgdx]
body: <p>I'm trying to make a simple magnet effect when my character is near a coin this should move to his position</p>
  
  <p>I have this:</p>
  
  <pre><code>if(Mycharacter.position.x +2  &gt;= position.x)    //position = coin position
                  {
  
              body.setTransform(Mycharacter.position.x, Mycharacter.position.y, 0);
                   }
  </code></pre>
  
  <p>This is close to what I want but I need to be able to see the movement of the coin to my character.</p>
  
  <p>I'm still very new to Box2d and Libgdx so if possible keep it really simple guys, it doesn't help I'm terrible on physics. Thanks in advance.</p>