I tried to use root motion to make the character go straight, but there was a problem that it moved sideways little by little.
So I’m going to “bake into pose” position X in the inspector of the animation clip, but bake into pose checkbox is in the ZX axis. Is there a way to bake into pose x-axis only? I’m still a beginner and this is my first time using root motion, so I don’t know many things. I’d appreciate it if anyone could tell me in detail.
There are two possible solutions to your problem:
- Implement the OnAnimatorMove message and manually strip the motion on z-axis.
- Implement a custom tool and delete the RootT.z curve using ModelImporter.