Animation moving characters

Godot Version

Godot 4.0

Question

Hi, I am trying to move my characters in game according to the distance they take in a step in their animation. I’ve been searching online on how to do that but can’t find much. Any clue of how to achieve it will be much appreciated. Thanks in advance

I believe what you’re looking to create is animation-driven movement. The primary method that is used to achieve this is called root motion.

In short, this method uses the motion of the animation’s root bone to drive the object’s motion in 3D space.

Here is the section for root motion in Godot Docs.

Thanks a lot for the reply. After looking online for a while, I have a more solid grasp of how it works in godot. Below are some more resources for anybody looking to learn about it too

The above link is a video going over the concept of root motion

The above link is a quick video demoing how to setup root motion in godot

The above link would be useful for anybody trying to reproduce the code