Search Unity

Collision not following avatar

Discussion in 'Physics' started by Dunnbar, Aug 14, 2022.

  1. Dunnbar

    Dunnbar

    Joined:
    Sep 7, 2017
    Posts:
    2
    Hi,

    I'm used to go with 2D on my projects but recently I started a quick 3D project.
    The thing is, I'm struggling to understand how animation works with Avatar.
    Here's the start animation of the zombie walking.

    Then the zombies walks but the collision doesn't follow and the zombie return to the collision box after being finished. The result gives a weird behavior.

    Am I missing some settings ? Something I don't get to make my zombie animation works in loop, and not reseting to the collision everytime.
    My setting animation looks like this.

    If anyone can help, would be sooooooo nice :)
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    5,998
    This may have to do with root motion. I barely touched the subject but I know as much that if the movement of the character is part of the animation, then technically the object (and collider) isn't moving, just the model is changing its position.

    It could be the "Bake into Pose" flags that are checked in your screenshot, try unchecking these.
     
  3. Dunnbar

    Dunnbar

    Joined:
    Sep 7, 2017
    Posts:
    2
    :D was that !!!!

    Thanks, was so simple to solve but spent hours try to find the right config. You're my savior ^^