Adding Force By Rigidbody

whenever I use AddForce() function, the agent doesn’t respond at all! But at the exact moment that I change CanMove fo false (I switch it a lot during runtime due to my agent’s walk pattern) the force will be applied. Is there a way to solve this problem?

Hi

Agents (even with rigidbodies) do not move using forces, but by setting the rigidbody velocity. If you need some external forces on your agents, I would recommend that you use the ai.Move function. See AIBase - A* Pathfinding Project

1 Like