Prevent Swivel To Turn During AI Pathfind

There are few ways to achieve this and I think for all of them you will have to create a custom Behavior Tree task. If you want to select a point that is in front of your character or to his side(-90,90), you can create eqs query node and use it to choose random location. For the querier you would create an empty actor in front of the deer that is a bit more than the distance of the mid point of the query area size. Now the new location will always be in front of the deer. Next you have move to location nodes that you can use to go to location. Also Run EQS query has on finished event that you need to use to trigger the move to and also you have output from the EQS query node that will give you array of selected locations(which will be the length of 1 if you have EQS set to single best item). I attached a dumb paint jpg.
For the second thing thing, what I did for my game to have smoother rotating is created a custom move to logic where I generate path points and my character rotates at X speed towards each point and starts moving, but that setup gets more complicated.

1 Like