Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

How to make Animation work with Physics system(rigid body)

Discussion in 'Animation' started by zackyang421, Nov 21, 2021.

  1. zackyang421


    Oct 13, 2021
    Hey guys, so I’m new to Unity, and I want to make a game that my characters can dodge from attacks and this dodge animation can make them move a small distance in the direction they are headed as well.

    And I did a little researches, On the Unity Manual it is stated that if the game object needs to use physics system, then it must use the rigid body component, but before the game object is moved by animation, you must turn the rigidbody into Kinematic, which means the physics system would not effect the game object anymore, otherwise there might be a race condition between physics system and Animation because they both trying to move the game object.

    I’m so confused about this part, so if the physics system is off( rigidbody is kinematic) when the animation is moving the game object, what would happen to my characters when they dodge in a stair?

    Would they just dodge into mid air and then fall down to the ground? If so, how would I fix that?