I am making AI for a top down game and want it to be able to only move left/right and forward/backwards; I do not want my AI to be able to move diagonal. Like if my AI wanted to move diagonal, I would want it to move up, left, up, left, and etc… How would I go about doing this? Is there any options in the character movement component that would do this, or would I have to code it?
I mean, I guess you could try alternating constrain to plane in the character movement depending on which way you want it to go, but I’m pretty sure that’s not the intended use of that setting.
To my knowledge, there is no out-of-the-box orthogonal movement like that in UE.
You would probably have to code it yourself. And, the way to code it would depend entirely on what you want to do with your game.