title: How does the OverlapCircle Work in Unity?
body: <p>Below is the Code I read somewhere to keep a check on whether the player is on the Ground or Not.</p>
  
  <p>We have to set the <code>LayerMask whatIsGround</code> from the Inspector.</p>
  
  <p>I know the <code>OverlapCircle</code> method creates some kind of Circle but i don't know what exactly doest it do and what does it check.</p>
  
  <p>How does it use the <code>LayerMask</code> to determine whether it's on ground or not.</p>
  
  <pre><code>    public LayerMask whatIsground;
      public Transform groundCheck;
      public float groundCheckRadius;
      public bool isGrounded;
  
  isGrounded = Physics2D.OverlapCircle(groundCheck.position,groundCheckRaadius,whatIsground);
  </code></pre>