title: Jumping towards the character’ s orientation
body: <p>I am making a 2d game in which the character falls on a slope and rotates while falling with a fixed rotation. When touching the ground the character jumps at an angle relative to the slope. I want it to always jump towards the orientation of itself, meaning towards his head, no matter what orientation it has at the moment when it is touching the ground with its legs. I attached a picture to make myself more understandable, and my code so far. I am new to unity and I hope you can help me with this problem. Thank you very much!</p>
  <pre><code>private void FixedUpdate() 
  {
      IsTouchingGround = Physics2D.OverlapCircle(groundCheckPoint.position, groundCheckRadius, GroundLayer);
      if (IsTouchingGround)
      {
          rigidBody.velocity = new Vector2(rigidBody.velocity.x, JumpPower);
      }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/vvwV5.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vvwV5.jpg" alt="enter image description here" /></a></p>