Sometimes, my AI runs backwards towards the player. All the nodes work correctly but the orientation towards player is wrong occasionally. The blueprint code is for the BTT_ModifyStateGE task. Can someone shed some light on this?
Are you sure it’s not the character’s mesh that’s misoriented?
Thanks for your response!
I don’t think it is. Here is the mesh. This doesn’t happen when the AI sights the player. It happens occasionally when I run far away and then Sprint back passing the AI, climb stairs, jump some etc.
It’s very rare, I don’t think the capsule can go backwards, you could make sure it’s not a mesh problem by adding an arrow to the capsule and disable its hidden in game.
So when the AI runs backwards you will see if it is the mesh or the capsule.
Could it be some of the animations that use root motion?
I don’t use root motion.
I added an Arrow to the capsule and it is pointing in the correct direction.