Using applyforce with AIPath

Does AIPath allow for being affected by forces? I’m attempting to allow knockbacks and such, would I need to write my own implementation? It seems like the AIPath may override (although still slightly affected by) physics2d.applyforce

Hi

The AIPath script is not designed to be fully controlled by physics. If you want something controlled by physics then yes, I’m afraid you’d have to write your own.
You can use the https://arongranberg.com/astar/docs/aibase.html#Move method to simulate a knockback effect by for example starting a coroutine and moving the agent a small amount every frame. If you have enabled the AIPath -> Constrain to graph option the agent will stop if it hits the edge of the navmesh.