How to get the "actual" velocity of a character when moving under root motion?

Sorry if this is a stupid question, but I don’t understand how this works. I’m trying to setup a locomotion system for my character using root motion. To debug/tweak I’m getting the current speed (length of the velocity of the characters movement component) to try to adjust my blend space animations so I get the same velocity in all directions.

This is when I noticed that the velocity of the character seems to be the velocity of the root motion animation being played regardless of what is happening to the character. So if the character is just face first into a wall spinning, the velocity is the same as when he is moving around unhindered.

Is there a way to get the “actual” velocity of the character?

1 Like