Search Unity

  1. Calling all beginners! Join the FPS Beginners Mods Challenge until December 13.
    Dismiss Notice
  2. It's Cyber Week at the Asset Store!
    Dismiss Notice

Root motion rotation and addForce

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

  1. g_raver

    g_raver

    Joined:
    Mar 14, 2018
    Posts:
    8
    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:
    28
    Try setting your animator to Update Physics instead of Normal.