Navigation behavior
When we talk about navigation behavior, we are referring to the actions of a character that is confronted with a situation where they need to calculate where to go or what to do. A map can have many points where it is necessary to jump or climb stairs in order to arrive at the final destination. The character should know how to use these actions to keep moving correctly; otherwise, he will fall down a hole or keep walking into a wall where he should be climbing some stairs. To avoid that, we need to plan all of the possibilities available for the character while he is moving, making sure that he can jump or perform any other movement necessary to keep moving into the right direction.
Choosing a new direction
One important aspect that the AI character should have is choosing a new direction when he is confronted by an object that is blocking his way and that he cannot pass through. The character should be aware of the objects that are in front of him and, if he cannot keep...