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. Dismiss Notice

Character controller and animation conflicting

Discussion in 'Animation' started by rycornx, Sep 11, 2020.

  1. rycornx

    rycornx

    Joined:
    Oct 4, 2017
    Posts:
    122
    hi, I'm having a problem with any animation that has my character lower the pelvis bone y position, crouching or something like that. Instead of the charcter going lower the feet get brought up and the characters upper body doesn't move. I think this is due to my characters controllers Collison box not letting it go lower but I dont know why this would be the case since the component is on the character as a whole not the pelvis bone. Also I currently am using many of the variable from the character controll for my movement system I can't not have it.
    How can I have both the animation look how it should while also having a character controller?
     
  2. dibdab

    dibdab

    Joined:
    Jul 5, 2011
    Posts:
    976
    you can do that in OnAnimatorIK with animator.rootPosition.y change, if I remember correctly. (that is workin, but moving xz seems buggy)