If I use a mixamo animation I can log the deltaposition of the animator and drive the character that way but if I try to do the same for my own animations created in blender deltaPosition is (0,0,0).
What’s the trick?
// update the movement based on the animation
Debug.Log(self.animator.applyRootMotion);
Debug.Log(self.animator.deltaPosition);
self.cc.Move(self.animator.deltaPosition);
I am setting the root motion node in the import settings. And the animator component has “apply root motion” checked. The animation is playing and the root motion is being applied to the gameobject but deltaPosition returns (0,0,0).
EDIT: Do I need to create a dedicated root bone?? Why can’t I just select “Rig” as the root bone? How is the deltaPosition calculated?