- Home /
Root motion with attack animation
I want to have a character do an attack combo. This combo would be done in Blender as one clip and then cut into separate clips in Unity, as e.g. "attack1", "attack2" etc. My issue is that I wanna use root motion, as in I wanna have the character move forward while attacking. But I also wanna have his hips (the root bone) move to the sides, as in the force of a slashing attack would push him to the side a little, some little movements like that. However the problem comes when this side (X axis to be precise) motion moves the whole character to the side, cause I use root motion. In Unity afaik I can only set root motion for XZ. Not for "only Z". Which is probably what I would want.
So to reiterate, to keep my transitions simple, I want my character to move with root motion forward, but not to the sides, even though it does so in the animation.
I suspect one option is removing the root motion on X asis by code somehow. What are some other options/common practices?
Thanks.