AI Path not working with Rigidbody2D?

I saw in the forum that AI Path should be working with physics-based movement, but it is not in my project.
I am using unity 2022.3.18f1 and I have tried both 4.2.18 and 4.3.92.
If AIPath Component is enabled (or more specifically, when can move is checked), AddForce doesn’t work. And all the force added to the rigidbody will take effect immediately after AIPath is disabled.
Please tell me where I got wrong.


AIPath works with a rigidbody, but only by modifying its velocity directly. It does not move using forces. So it will collide with things, but it will not react to other kinds of forces.
To get a movement script that is force-based, you’d have to write your own. See Writing a movement script - A* Pathfinding Project