# AI MoveTo causes twitching

**URL:** <https://forums.unrealengine.com/t/ai-moveto-causes-twitching/465736>\
**Category:** AI\
**Tags:** ai-navigation, Behavior-Tree, twitch, failing, unreal-engine, question\
**Created:** [May 24, 2020, 3:34pm UTC](https://forums.unrealengine.com/t/ai-moveto-causes-twitching/465736 "2020-05-24T15:34:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Virtual\_Bones](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Virtual\_Bones](https://forums.unrealengine.com/u/Virtual_Bones)\
**Post date:** [May 24, 2020, 3:34pm UTC](https://forums.unrealengine.com/t/ai-moveto-causes-twitching/465736/1 "2020-05-24T15:34:19Z")

</div>

So I’ve had a lot of issues with the MoveTo node in the behavior tree. It wouldn’t work for a long time (Would always fail) but now I’ve managed to stop it from failing every tick (which I have no idea how I fixed it). But now, as it seems, my character will move for 1 frame, and then stand still for another and repeat it until it reaches the player location. This gives the twitch effect as it is playing two separate animations after a very short time period.

Don’t worry about the compile error, that’s just the IK for the head rotation.

 ![302672-aibug.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/f/2/3f241c274ae052ec1b02dca40be2c831603fabcf.jpeg)
