AI tries to walk through walls

Hi guys, I’ve created an AI that has 2 states. The first one is the chase state that chases the player when the AI character sees it. The second one is, the “Move to random location” state. When the AI is in the move to random location state it tries to walk through walls. How can I fix it?

Check out the various ways you can tell your AI about things in the world. It sounds like you don’t have a navmesh set up? There are other kinds of navigation tools/aids you can put into the world to help your AI find it’s way about.

EDIT: there is also this:

2 Likes

Thank you, I will check the video out. :slight_smile:

1 Like