How do I prevent an AI character from rotating while moving?

first of all the ai shouldnt just change its position while chasing. the enemies speed should be good enough so that it can catch up to the player. also you can go to project setting and search for Strafe in The AI Portion.