I'm trying to setup root motion for an animation that I have but I'm struggling to get it working right.
My armature has a root bone named root
and its child is the pelvis
bone.
This is the original animation:
What I'm trying to do is copy the location keyframe data from the pelvis
bone to the root
bone. I thought it would be as straightforward as this for each keyframe:
root_bone.location = pelvis_bone.location
But this results in:
After some digging I noticed that I get the same results with the unmodified animation if I uncheck "Local location" under the pelvis
bone's "Relations".
So I'm guessing I need to transform pelvis_bone.location
somehow? I don't understand in what way though.