Перейти к содержимому

Using Rootmotion based Locomotion with AI Navigation

CodeLikeMe

0:00 / 0:00

Using Rootmotion based Locomotion with AI Navigation

17 874 просмотра · 5 лет назад
CodeLikeMe
104 тыс. подписчиков
17 874 просмотра · 5 лет назад
project files :   / 42078443   Today I am going to address a fundamental problem we have in unreal when we try to use rootmotion based locomotion system with AI navigation. The problem is, usually the locomotion animations are not rootmotion enabled and animation is played considering the velocity of the character just to justify the movement of the character. When we call an AI_MoveTo event on a character with such an animation setup, the character will move to the destination with the animation without any issue. But if we have implemented the character locomotion using rootmotion enabled animations, this usual method will move the character but it wouldn't play the right animations. So, to resolve this problem, I am going to implement a custom AI_MoveTo event which supports AI path navigation with root motion enabled locomotion animations. Support my work :   / codelikeme   Like my facebook page for more content :   / gamedevelopersclub   Follow me on twitter :   / codelikeme2   Follow me on reddit :   / codelikeme   #CodeLikeMe #unrealengine #ue4 #indiegamedev