title: Object target radius checking in Unity
body: <p>I'm trying to make an attacking sword thing that moves between 3 points. The main place in the characters hand, the top of the swing and the bottom of the swing. After that it goes back to the hand. </p>
  
  <p>I used the general "ground check for jumping" code and modified it a bit because using "Move towards" in a loop never quite hit exactly for changing to the next stage. </p>
  
  <p>Both errors are on the "reachedTarget" line;</p>
  
  <pre><code>The best overloaded method match for `UnityEngine.Physics2D.OverlapCircle(UnityEngine.Vector2, float, int)' has some invalid arguments
  
  Argument `#3' cannot convert `UnityEngine.Vector3' expression to type `int'
  </code></pre>
  
  <p>Here's the code.</p>
  
  <pre><code>void TargetCheck(GameObject target)
  {
      //Returns true when the sword is over the target
      reachedTarget = Physics2D.OverlapCircle(transform.position, 0.1f, target.transform.position);
  }
  </code></pre>
  
  <p>I'm not quite sure what I'm doing wrong here. Thanks for any help :)</p>