Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question how to bake into pose root transform position x -axis only?

Discussion in 'Animation' started by aquadj, Aug 22, 2023.

  1. aquadj


    Dec 24, 2022
    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.

    Attached Files:

    Last edited: Aug 23, 2023
  2. SolarianZ


    Jun 13, 2017
    There are two possible solutions to your problem:

    1. Implement the OnAnimatorMove message and manually strip the motion on z-axis.
    2. Implement a custom tool and delete the RootT.z curve using ModelImporter.