Search Unity

Disabling Root Motion for Jumping

Discussion in 'Animation' started by charles_xl, Jul 30, 2020.

  1. charles_xl

    charles_xl

    Joined:
    Oct 4, 2016
    Posts:
    87
    Hello there!

    I have two simple abilities on my character, one for moving left and right and one for jumping. My character uses root motion to control movement but when jumping, we disable root motion by calling `applyRootMotion = false` but we get a flash of a frame of what looks like an idle state (possibly because the animator is being reinitialized when root motion is disabled via code).

    Is root motion an all or nothing solution? Is there a different way to turn it off other than this? Thanks in advance!