Search Unity

character with animation falling very slowly

Discussion in 'Animation' started by steveh2112, Mar 5, 2020.

  1. steveh2112

    steveh2112

    Joined:
    Aug 30, 2015
    Posts:
    314
    i have a NPC character that has several animations. i just added a fall animation and notice that when the character is falling, its super slow. i checked the rigidbody and the drag is only 1 should should fall like a rock, but its barely moving.

    when i disable the animator at run time, it falls normally so i know its from the animation.

    i don't have root motion set or anything like that.

    any ideas, do i have to disable the animator while falling? seems odd

    thx
     
  2. steveh2112

    steveh2112

    Joined:
    Aug 30, 2015
    Posts:
    314
    i figured it out
    set _animator.applyRootMotion = false;

    don't know why that wasn't default
     
  3. Inxentas

    Inxentas

    Joined:
    Jan 15, 2020
    Posts:
    278
    It's on by default. It's a cause of many error, but luckily those are all quite typical so easy to recognize when animated things move oddly.