Home > database >  let foot stay in place and body move forward trhough animation - unity
let foot stay in place and body move forward trhough animation - unity

Time:09-03

I have a walking animation and i have colliders on the feet with a max friction physics material so that the foot stays in place. I want that, when one foot is on the ground and the ohter foot in the air, the upper body gets moved forward by the animation. Is this possible?

CodePudding user response:

You're looking for procedural animation. Using friction is not the way to go about it.

Unity's animator has some built in functions for humanoid characters. You first need to create a Rig, apply an IK pass to the animation layer and then you'll be able to use functions like Animator.SetIKPosition to position your legs in the right spot.

  • Related