• Opsive has been nominated for TWO Unity Awards: Publisher of the Year and Best Development Tool (Behavior Designer Pro)! Your support means everything, cast your vote here: https://awards.unity.com/vote

Evade Movement - Unit stops in corner

FENiKz

New member
Hi everyone,

Even though I am completely new to unity I went ahead and got BD Pro and started to dip my toe into everything, so I apologize for potentially silly questions.
I wanted to make a simple chase game where I walk towards an enemy unit and the enemy unit evades me. When the enemy unit reaches a corner he seems to get stuck. I can see that the Evade node in the graph gets triggered, but the unit doesn't move.

I use NavMesh and this is how my BT looks like:

1759676761982.png
1759676896338.png
Is this expected?

Thanks!
 
Hi, the Evade task is more rudimentary than you expect as it simply makes the agent move (or try to) in the direction of his pursuer's velocity. If he reaches a corner or an edge of the nav mesh, then there is nothing he can do. You'd have to make a custom task to for example give him a new target destination once he reaches an edge, let me know if you need assistance with that.
 
Welcome!

This is a current restriction of the Evade task. Right now it does not take into account corners. I can add it to my list of features to take a look at.
 
Thanks for the explanation Cheo and Justin, as I was using it only for learning the basics of Behavior Designer I am not pressed to implement this feature, thanks!
 
Back
Top