Using gravity with an animated character

Hi and please forgive my english,
i use Unity-5.3.3f1.

im trying to animate a Mixamo basic character i imported. it works quite good.
but i’d like my character use gravity.
with a Rigidbody nothing hapens. the animation works good but the avatar stay in the air…
i added a Collider (capsule) but no way. same result.
The gravity works only if i uncheck the Apply Root Motion but the avatar walks in the same place
not forward (its not a loop like the Bake into pose. it walks lol) like if the avatar was prisonner of
its Collider.

What to do then ? :face_with_spiral_eyes:

Thanks for help :slight_smile:

1 Like

You can move your character with traditional way through transform.Translate or apply forces.

Hi and thank you for answering :wink:

But i would use animations.
i found why my character stay in the air in the walking and running animations. My bad, i did not set the
velocity.y to zero. And i use a Character Controller instead of a Capsule collider.

the problem is with the jump animation.
The character “leaves” his Character Controller !? i mean the Character Controller stays in the initial transform
while the avatar follows his animation. And without the Character Controller the avatar pass through the other
colliders… whaaaaaaaaaaaaa lol

1 Like

I could make my animation. it works good.

helped by this tutorial

:slight_smile:

This Video? (Recovered Link from at least 3 wayback machines inside waybackmachines and view sources on all of them, What would cost you to SAY the name of video instead of saying THIS tutorial?)

VIDEO NAME : UNITY 4.0 MECHANIM ANIMATION TUTORIAL