Hi everyone!
I make an educational project in UE4 with blueprints, and have a little question about NPC jitter, when i use SetActorRotation function with RInterp To node. I call it every tick from my behavior tree with my own task, when player comes near the NPC, and then unfortunately rotation looks little antsy (video in attachment).
So is there any stable way to rotate my mr. Bot without this jitter? Should i use animation rotations instead of procedural rotation? Maybe it is not a good idea to call task and then tick every time?
On screens below mrBot - my NPC character, is made from standard TPS character, mrBotController - his AI controller, and RotateToPlayer is a function, called from mrBot’s blueprint
mrBot’s RotateToPlayer side within NPC blueprint:
mrBot’s behavior tree task side:
and here is the behavior tree, where rotation task is marked with red:
this is how it looks like (youtube):
[NPC jitter when using SetActorRotation - YouTube][4]