Search Unity

Root motion rotation and addForce

Discussion in 'Animation' started by Epsilon_Delta, Jul 9, 2018.

  1. Epsilon_Delta

    Epsilon_Delta

    Joined:
    Mar 14, 2018
    Posts:
    258
    Hi there. I have a question about Root motion of rigidbody and physics. I have a character with collider and rigidbody, which is being controlled by A and D, both keys are adding forces to move character desired way. I want to turn around my character by 180 degrees with nice animation, so I have to use root transform rotation and "Apply root motion" on Animator component. Every other motions are baked to pose. With this settings my physics works in a weird way, my char is somehow slowed down drastically as if there was a massive drag. Sometimes addForce goes completely crazy, adding more and more force every frame until the maximum float type number. When I disable root motion, everything is fine. Any ideas why or how to resolve this? Thanks for the answers.
     
  2. PlayingKarrde

    PlayingKarrde

    Joined:
    Aug 19, 2013
    Posts:
    38
    Try setting your animator to Update Physics instead of Normal.