2D Root Motion curves - not working correctly

Hello,

After watching the “Authoring Root Motion” tutorial video, I attempted to set it up myself but ran into an issue.

I have a 2D frame-by-frame animation setup in unity in the animator, and I’ve set up a Transform frame-by-frame animation with it so that the character actually moves while the animation plays.

I used the “Generate Root Motion Curves” button on the animation asset, but when playing the scene, it doesn’t seem to work right. The character moves VERY far per frame, not at all the same offset as when playing the animation in the Animation window.

However if I create the same Transform animation, generating the root motion curves starting the character at the world origin (0, 0), only then does it work correctly.

I was under the impression that the “Generate Root Motion Curves” would use whatever the arbitrary starting point is to calculate the offset, but that doesn’t appear to be the case.

Could anyone shed some light on what’s happening here?

Thank you

I believe my problem has something to do with my object’s scale? But I don’t know why.