i have a problem

i want this ,from one point to another,How can i do

62037-adsız.png

You would really need to provide more details, but if you’re asking about moving a rigidbody in gravity from point A to B in a ballistic trajectory, you can still do it with AddForce() but would have to do some additional calculations, as per:

        // Calculate the change in velocity.
        Vector2 deltaVelocity = new Vector2(
            (target.transform.position.x - transform.position.x) / time - rb.velocity.x,
            (target.transform.position.y - transform.position.y) / time - Physics.gravity.y * time / 2 - rb.velocity.y
        );

        // Calculate the force to apply.
        Vector2 force = rb.mass * deltaVelocity;
        
        rb.AddForce(force, ForceMode2D.Impulse);

where time is the number of seconds the trajectory should take.

I was thinking to use AddForce, and then combine that with gravity in the character itself. I am not sure because I am really new here, but IMHO that will works on your case.