How to Walljump? (3D) Need Help!

-hi i am trying to make my player to be able to jump from a wall to the oppsite wall from like a 45 dgree angle (like mirror’s edge gameplay) so he jumps from wall to wall without touching ground.

-you see i managed to make my player wallrun then jump but he jumps straight up i want him to jump from the side at a 45 dgree angle.

-if you figured out how to fix it please explain it to me since i am new and dumb THANK YOU

here is the code that makes player jump up:

`````` if(isRuningLEFT && Input.GetKeyDown(KeyCode.Space) || isRuningRigh && Input.GetKeyDown(KeyCode.Space))
{
rig.AddForce(Vector3.up  * 20, ForceMode.Impulse);
print("jumped");

}
``````

and here is the entire script for the wallrun if you need to know:

`````` //Wallrun code
if (isGorunded)
{
jumpCount = 0f;
}

if (remove == 1 )
{
if (Physics.Raycast(transform.position, transform.right, out HitRIG, 1))
{
if (HitRIG.transform.tag == "Wall")
{
isRuningLEFT = false;
isRuningRigh = true;
jumpCount += 1;
rig.useGravity = false;
rig.AddForce(100, 0, 0);

}

}
else if (Physics.Raycast(transform.position, -transform.right, out HitLEF, 1))
{
if (HitLEF.transform.tag == "Wall")
{
isRuningLEFT = true;
isRuningRigh = false;
jumpCount += 1;
rig.useGravity = false;
rig.AddForce(100,0,0);

}

}

else
{
isRuningLEFT = false;
isRuningRigh = false;
rig.useGravity = true;

}

}
if(isRuningLEFT && Input.GetKeyDown(KeyCode.Space) || isRuningRigh && Input.GetKeyDown(KeyCode.Space))
{
rig.AddForce(Vector3.up  * 20, ForceMode.Impulse);
print("jumped");

}

}
``````

Did you try the solution I suggested in your other post about this issue?

https://answers.unity.com/questions/1758153/how-do-i-make-my-player-jump-from-an-angle-wallrun.html?childToView=1758186#answer-1758186