Animation not working with collider

I have a roll animation on my player. I also have a capsule collider on my player.

In this roll animation my player starts standing and then rolls to the ground


How it looks in blender:
135082-ezgifcom-video-to-gif.gif


However, in unity during the actual roll, the model just floats in the air. Since my model has a humanoid avatar. I cant modify the collider. I am just stuck with it floating


How it looks in unity:
135086-ezgifcom-video-to-gif-1.gif


Does anyone know how to fix this?

And that’s when it’s time to upgrade your knowledge.
Your player’s collider should be inside Animator’s hierarchy, and you have to animate it separately.
Thus:

    1. create empty gameObject called Player (with all scripts attached).
    2. Inside it add playerModel with a collider attached to playerModel, not player.
    3. Animate collider
    4. Profit