How do I add force in Z axis in a Transform using unity2D

I’m making 2D game and for the jump, I was just making:
rigidbody2d.AddForce(transform.up * force);
Now I need to make the same thing (still in 2D) with axis Z.
How can I add force in Z axis within unity 2D ?

In 2D, the Z axis is irrelevant. If you really need to move along the Z axis (why?), you have to do it yourself.

If you mean rotate the Rigidbody2D around the Z-axis then you use Rigidbody2D.AddTorque.

what do you mean? You are saying that I must simulate a fake Z movement using only X and Y axis? Or you are saying that is possible to use Z axis at unity2D even though unity2D ignores the Z axis?

2d only has x/y. If you start using x/y/z then that’s 3D, or have you rotated everything so your 2d game is on the x/z axis?

You can, because it still is a 3D world. But using the Z axis is usually not necessary in 2D games.

It still isn’t quite clear to me what you want to do.

I’m making a game in which you see the player almost from above, like snes rpgs view.
but I wanna to make a jump, so for a real jump, I think it’s necessary to use Z axis, once it points in direction of the “screen”.
my game is using unity3d now, with ortographic camera, but I’d prefer to use 2d once I’m used to it… but if I don’t have better option, I’ll keep with 3d

Check out the tutorials & some of the demo videos for assets on the asset store, isometric 2d isn’t that easy if you are doing 2d sprites for the ground

Not necessarily. The Z position is not the only way to specify the sprite drawing order. You can also use “Order in layer.”