XaiJu
CodeLikeMe
CodeLikeMe

patreon


Unreal Engine 5 - Rootmotion Based Locomotion


Today, I am going to update the rootmotion based locomotion system I have implemented in unreal engine 4, to unreal engine 5. In this project, I have implemented a locomotion system that purely work exclusively using rootmotion enabled animations. The movement system includes walking, crouching and sprinting along with turn, turn inplace movement to stop, jump and landing animations . So, all the movements of the characters are driven by the animation and by doing this we can achieve better animation and movement synchronization. The same system can be used by AI driven NPC characters too. Also there is a ragdoll system as well when the character fall from a higher place and land, it will go to ragdoll mode and will be recovered from it shortly afterwards.

password=codelikeme_rmue5

Unreal Engine 5 -  Rootmotion Based Locomotion

Comments

you shouldn't enable force root lock . not sure what you meant by downloaded other animation

Thilina Premasiri

Sorry its me again. I downloaded the file from locomotion for metahuman and imported the animation to UE5. Then the controller error seems to be solved at the first time. but the problem of side movement is still wrong. No matter i set the "root motion root lock" as "ref pose" or "anim first frame", the character is still not able to move to the sideway. I just tried to fix it by myself but didn't success. Finally i downloaded other animation and it works. It's strange that if i open your file directly by UE5, then it all good. Just duno where the exact problem is... Its a bit frustrated but i do feel very good with your tutorials. And I will be glad if you will make a UE5 version tutorial of locomotion. Great thanks again!

Rasaid Tsang

Oh thanks a lot! Let me try again!

Rasaid Tsang

Yes, initially there was a problem in animations i had used in this series. I fixed it later. So, if you use the animations in latest release, all would be fine. You can right click and export animations as fix files from unreal

Thilina Premasiri

Hi Sir, i m a very new beginner who wish to learn locomotion. I watched your part 1 of locomotion but i find that if i use UE5 to open the example file of part 1, and just replace the "play slot animation" as what you did in this video, then the keyboard controller will be wrong and the character cannot move properly. I find that the skeleton of locomotion animation in your example file is facing to X instead of Y as default setting, i duno is this the reason why i get wrong and how to fix it... I'm not sure are these questions stupid but just duno how to find the answer by myself... thanks so much if you can help me...

Rasaid Tsang


More Creators