title: Unity2D - Rigidbody not stopping when it reaches a position
body: <p>I have this code:</p>
  
  <pre><code>public class MoveCard : MonoBehaviour
  {
  public float speed = 1f;
  public Rigidbody2D rb;
  public Vector2 pos = new Vector2(6.8f,0);
  public bool move = false;
  void FixedUpdate(){
      if (move){
             //Stops Rigidbody
             if (rb.position == pos){
                 move = false;
              }
              rb.transform.position += -rb.transform.right * speed * Time.fixedDeltaTime;      
      }
  }
  public void CardMovement(){
      move = true;
  }
  }
  </code></pre>
  
  <p>I have it set as so when a button is pressed, CardMovement() initiates and in FixedUpdate I have a if statement that turns move off when the Rigidbody reaches a certain position. The rb moves but it doesn't stop when it reaches the Vector2. I am new to Unity so I don't know if this is the way to do it.</p>