I am new in unreal engine and learning blueprints. I followed a tutorial to make the character slide under small spaces. But when sliding the charactes slides without the capsule component. In the slide animation, enable root motion is on.
Hey @Charlie-L18!
You’re manually adjusting the location of the mesh. If your sliding animation is in place, you would move the character on top of playing the animation (not just the mesh like you’re doing currently, but don’t think much about this sentence as the real suggestion is in the next one). However I believe your sliding animation is not in place, which should be the reason you wanna use root motion on it. So try simply removing the Set Relative Location nodes.
Hope this helps!
Thanks for the reply. But the capsule is still not moving along with the skeletal mesh.
Could you confirm that your animation is indeed not in place? And could you provide:
- A video where you trigger the animation with a debug key, for example, without setting the mesh’s location yourself, and the collisions are visible
- A screenshot of your new blueprint code
- A screenshot of the Root Motion section of the Asset Details window inside your animation sequence for the anim montage
If you’re not able to add these attachments on this platform, you can upload a video to YouTube where you showcase all of the above.
https://drive.google.com/drive/folders/1HTQfTsgw7eJiUkw9LK5xUmAmm_KMe9ZM?usp=sharing
here are the videos of what is doing, and the blueprits, the las part is when I removed the Set Relative Location nodes.
Interesting Seems like root motion is indeed enabled on your animation. Are you sure that the montage you’re playing is that animation’s? Could you try creating a new anim montage from a different anim sequence with root motion enabled and only triggering the montage with a debug key and nothing else?