Moving at the LookAt direction

I have an object (A) which turns to another object (B) with the LookAt function. How do I make A go to B?

What I found in the suggestions was:

rigidbody.AddForce(Vector3.forward)

It didnt work completelly since the object moved to global forward and I need local. Secondly I dont want my object A run straight to B like with a raycast. I want it to JUMP in that direction. How should I do that?

The best thing that comes to my mind looks like this:
Move Forward (X,Z) with a Force (Y). Im sure theres a script that depicts my idea. Would you please suggest it? Thanks.

You could just handle it with two different addForce calls. They are additive.

like so:

float upForce = 5f;

rigidbody.AddForce(transform.forward); //this will give you "forward" relative to the transform's facing direction
rigidbody.AddForce(Vector3.up * upForce);

if you want the up vector to also be relative to the transform, use transform.up