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.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Mecanim Foot Sway

Discussion in 'Animation' started by Ravenwild, Dec 4, 2015.

  1. Ravenwild

    Ravenwild

    Joined:
    Sep 24, 2014
    Posts:
    4
    Hi guys,

    I've had this problem for a long time and I cannot for the life of me figure it out. I'm really at the end of my tether.

    Every time I do an idle animation with hip movement in it and bring it in to unity (anim compression switched off, tried all combinations of root motion baking etc) the feet slide around.

    I know that theres nothing holding the feet in place, but on a baked anim they should be perfectly countering the animation of the hips thus giving the illusion they are held in place but this just isn't happening.

    I work as an animator in the games industry so it's not like I don't understand what's going on I just cant get it to work as I feel it should be.

    Do I need some kind of root bone that's on the floor that has no Y axis animation on it or something? I thought maybe that was the case but when I look at other peoples rigs they don't seem to have this.

    Cheers.
     
  2. Ravenwild

    Ravenwild

    Joined:
    Sep 24, 2014
    Posts:
    4
    For anyone else looking for a solution to this after about 5 hours I've just found the ridiculously stupid solution.

    In mecanim click on the anim state and tick the "Foot IK" box in the inspector.
     
    Singtaa, theANMATOR2b and hopeful like this.