Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Resolved Rigidbody characters starts floating when animation controller applies root motion

Discussion in 'Animation' started by SassyPantsy, Mar 12, 2021.

  1. SassyPantsy

    SassyPantsy

    Joined:
    May 17, 2020
    Posts:
    142
    Hi all, noob question here -
    tl;dr: Characters float when the animation controller applies root motion.

    I'm trying to apply root motion on my characters. Problem is, I'm also using rigidbodies on my characters, and they start floating when root motion's set to true.
    It stopped once I set isKinematic to true, but then I can't use physics - such as colliding, jumping, or falling.
    which is why I'm using a rigidbody and not a character controller.

    I guess I could solve this with a script that toggles between root motion and isKinematic, but that sounds a bit hacky...

    Any help?
    '
     
  2. SassyPantsy

    SassyPantsy

    Joined:
    May 17, 2020
    Posts:
    142
    FIXED IT!!! set "animate physics" on the animatorcontroller...
     
    lvulcanis and BrandyStarbrite like this.
  3. BrandyStarbrite

    BrandyStarbrite

    Joined:
    Aug 4, 2013
    Posts:
    2,076
    Oy! Interesting fix.
     
  4. lvulcanis

    lvulcanis

    Joined:
    May 2, 2016
    Posts:
    6
    Thank you very much!
    This fixed my rigidbody + root motion character.
     
  5. Draken17

    Draken17

    Joined:
    Apr 7, 2022
    Posts:
    1
    Thank You. I had no idea why my character kept floating like that.
     
  6. Vladyjokey

    Vladyjokey

    Joined:
    Mar 19, 2021
    Posts:
    1
    You can also go in the animation tab of the model you are using then go to Root Transform Position (Y) and click bake into pose and make sure your based upon is set to original. Do that for any animation that is having this problem. With this fix u don't need to change the animate physics
     

    Attached Files: