wall jump help

I am trying to set up a wall jump but when I try to use rigidbody.velocity it works in the Y axis but nothing in the X axis… when I try to use AddForce it is very unnatural looking and jerky… i want it to be kind of a diagonal jump off the wall like how it was in mega man x. I am not really sure what to do, I’ve pretty much checked google 100 times on this one and I am still not getting it… anyone have any ideas? thank you!

UPDATE!
I put the wall jump code inside of fixedupdate so now it works on the x axis… but… the character moves to the right really ffast and then continues upwards after instead of it being a smooth diagonal jump… any ideas?

bump