Problem with AI using Pawn Sensing: AI does not deviate from the player during movement

Hey guys! I’m facing a problem with AI in my Unreal Engine 5 project and would like some help.

I created a simple AI using Pawn Sensing to detect the player and added a Nav Mesh Bounds Volume to my level. The AI follows the path normally, but when the player steps in front of it, the AI continues walking straight without deviating or recalculating the route. What I would like is for the AI to recognize the obstacle (in this case, the player himself) and avoid it, bypassing the character to follow his path.

Is there any way to make the AI realize that the path is blocked and automatically recalculate to divert?

Any tips will be very welcome. Thanks!

Hello! I think I can have a potential solution for you. If you just want them to avoid the player when walking you can add a NavModifier component. This will make the moving object have a bounds like most static meshes you place in the navigation.

You can change the values in the BP depending on how close you want them to be by your player when avoiding them.


1 Like