I use A* ai because navmesh agents don’t work with tile maps. But I have an issue with my a* ai where they just randomly stop chasing their target and just stay still. The target is the player, and what happens is they’ll be chasing the player and then all of a sudden they will just stop moving towards the player. Normally, I have a script that tells them when to move or stop through states (Idle, Follow, Attack, etc.), but even with those scripts completely disabled/removed, the ai will just freeze out of nowhere. I can see that their “desired velocity” is not 0, so they’re not actually stopped, but more so like “stuck.” It seems like they are trying to move, but cannot. I did notice that if anything pushes or moves them in the slightest, they will become unstuck until the bug occurs again.,
In this screenshot below, you can see that the enemy’s velocity is greater than 0, but the enemy isn’t moving (hard to see because its a screenshot), but just imagine that they are just staying still. You can also see that the a* ai is still drawing rays towards their target, so they are still able to update their path towards the player, but just can’t move. You can also see that I have scripts like “EnemyController” and “EnemyMovement” which I thought would cause this issue, but the problem still occurs even with all my scripts removed (only keeping the scripts that AStar requires like AIPath, Seeker, and AI Destination Setter.
Also my enemies do have a rigidbody, if that matters. Thank you