Velocity vector in a root motion animation

Hi guys! I was wondering how can I get the velocity vector of a Root motion animation at any time via C++.

For example, having a 20 seconds root motion animation, I can get the Root transform of the animation with the ExtractRootMotion function, so I can know where the character is going to be at any time of the animation, but how can I know the velocity at that point, for example the fifth second.

Thanks in advance!

You can’t get the velocity of an animation because it doesn’t have any technically, but you can get the velocity of your character which will be updated when you play the root motion animation.
Velocity

So play your root motion animation with an anim montage and then print string the vector length and that will be the speed your character is moving based on that root motion animation. Velocity is speed and direction.