title: How to make a wall jump in Unity 2d?
body: <p>I'm trying to write a script to rebound from the ball like a Super Meat Boy.</p>
  
  <p>For normal jump, the script code is:</p>
  
  <pre><code>rigidbody2D.AddForce(new Vector2(0, jumpForce));
  </code></pre>
  
  <p>How to make a second script to bounce off the wall?</p>
  
  <p><img src="https://i.stack.imgur.com/aNjVM.png" alt=""></p>
  
  <p>I just need one line of code to jump.
  When I try to edit the above code to bounce off the walls, my character teleports, instead of smoothly move to the left.
  I do not understand why teleports. When I tell my hero to just jump up, then jump normally, and when I tell him to jump to the left, it is the effect of teleportation.</p>
  
  <p><img src="https://i.stack.imgur.com/nm4Bw.png" alt=""></p>