title: Why is does my player stick to the wall in my platforrmer?
body: <p>I'm  working on a small 2D platformer (with the help of tutorials) on Unity to get better at the game engine. When I was testing the movement script, the player would stick to the wall and not fall down unless I stopped holding the A or D key. I'm really new, so forgive me if I made a stupid mistake. Here's the code:</p>
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  
  public class Movement : MonoBehaviour
  {
      public float radius;
  
      public float speed;
      public float jumpForce;
  
      public Transform feet;
  
      Rigidbody2D rb;
  
      public LayerMask groundLayers;
  
      void Start ()
      {
          rb = GetComponent&lt;Rigidbody2D&gt;();
      }
  
      void FixedUpdate ()
      {
          rb.velocity = new Vector2(Input.GetAxisRaw(&quot;Horizontal&quot;) * speed, rb.velocity.y);
  
          if (Input.GetKey(KeyCode.Space) &amp;&amp; IsGrounded())
          {
              rb.velocity = new Vector2(rb.velocity.x, jumpForce);
          }
          
      }
  
      public bool IsGrounded ()
      {
          Collider2D groundCheck = Physics2D.OverlapCircle(feet.position, radius, groundLayers);
  
          if (groundCheck != null)
          {
              return true;
          }
          return false;
      }
  }
  </code></pre>