Download

AI Rotating madly

I’m moving an AI actor to origin(0,0,0) using behavior tree. My AI moves to origin but when it starts it’s movement towards origin, it also starts to rotate at 360 Degrees very rapidly. It keeps rotating until it reaches the origin(0,0,0) and every time it reaches the destination point, it has different facing direction. Sometimes it stops at origin facing left, sometimes right, sometimes backward and sometimes forward.
Behavior Tree:


This is how AI keeps rotating while moving to the destination: