apparently from what I read , this snap back issue is caused by root motion. But I tried to enable root motion in the animation like the documentation says and it makes no difference. still does same thing. Is there anything else I can do? Thanks
You should make sure the animation actually has root motion. Double click the animation to view it. Then from select âCharacter -> Animation -> Process Root Motionâ. This should show you if there is root motion.
Also you can not drag a root animation directly into the scene and expect it to work. It has to be part of a blueprint where the root motion can move the root component capsule.
Well when " process root motion " is not selected he keeps rolling in one place. When âprocess root motionâ is selected , he keeps rolling along , right off the side of the floor. That is the only difference I see. The animation is in the animation bp and added into the state machine there. Otherwise it plays fine , character just snaps back to the start awkwardly at the end of the animation. Itâs like he teleports back almost. From what I been reading it seems the capsule stays put and the mesh moves, so he snaps back to the capsule. Its just like it talks about in the root motion documentation , because if I roll up against a static mesh , he will roll right through it. But all they said is to enable root motion , which I tried. They mention another root motion dropdown menu , but I donât have that in 4.20.
actually I see I do have that other dropdown. so when to " no root motion extraction" it does the above behavior. set to any of the other options ( montages only , ignore root motion , root motion everything, etcâŠ) its like he rolls in place sideways. Not forward like he was. Its almost like he is rolling against an invisible wall sideways. but he is not snapping back , though that could be because he is rolling in place and not really moving anywhere. With "process root motion " on and the bone hierarchy on , he kinda rolls sideways along the floor and it looks like the root is on the floor and sliding along it , and there is a red line behind him, like this.
when I disable root motion , his standing pose changes a bit to the side. And though he rolls from left to right on the screen , he is actually rolling forward.
Anybody know a way around this? When capsule is set to visible , you can see the character jump right out of it when animation plays. Can the capsule be attached to the root bone? I noticed that in the anim bp if I set it to " root motion from everything" , then in pie , he rolls in place , no matter whether âenable root motion " is checked or not in the animation. Just like if I set anim bp to " from montages onlyâ then he rolls forward and out of the stationary capsule , whether " enable root motion " is checked or not in the animation.
Iâm figuring it may be something in the current project, i borrowed the roll animation from the Action RPG and it behaves exactly the same. I used the original roll animation i was using in a fresh project and even though it did not roll forward ( more to the right), the capsule did move with the character.
Root motion only works on root bone (hence root motion)
Looking at the screenshot you posted, its not the root bone moving, but one bone below it. Check your bone hierarchy.
Donât know from where you got the animation, but for example blender default export makes a new âboneâ on top of your hierarchy, which is the armature object itself. Itâs stupid, and â â â â â up the whole root motion, but thatâs a thing. If you rename your armature to âarmatureâ before exporting, UE4 ignores that bone, and your hierarchy remains intact
Thanks, I will definitely try this. Iâve been using a Root Motion walk cycle animation in a cinematic and for the life of me I simply have not been able to get the capsule/origin point for my Metahuman to do anything other than stay stuck to the start point.
In the docs it doesnât say anything about a blueprint to get root motion working. If there is something that needs doing in the blueprints, do you know where I can find the directions for setting up the blueprint for that? thanks!
Try RM Fix Tool plugin in UE5 for fixing any root motion problems https://youtu.be/JbWckEC9jlk?feature=shared it lets you also change direction of the animation
Hello everyone,
Sorry for reviving this post, but I was also searching for a method to fix animation snapping, and I found it in the documentation and in assets I bought. When you enable Root Motion in an Animation Sequence, you need to head to your Animation Blueprint. In the Animation Blueprint, you need to open âClass Defaultsâ and find the Root Motion category. There, you will see âRoot Motion Mode,â which is set to âRoot Motion from Montages Only.â All you have to do is change it to âRoot Motion from Everything,â and youâll be able to fix the snapping.
You saved my life Many Thanks!