Search Unity

Standard Assets Humanoid Animation stopping movement in transitions

Discussion in 'Animation' started by puargs, May 11, 2017.

  1. puargs

    puargs

    Joined:
    Apr 30, 2013
    Posts:
    10
    Here's a video of this happening:


    I'm using the Standard Assets > Characters > ThirdPersonCharacter Controller scripts. I have commented out line 55 of ThirdPersonCharacter.cs so that the character will just walk right off a cliff if you move forward (instead of projecting their movement smoothly and slowly down the plane):

    Code (CSharp):
    1. //move = Vector3.ProjectOnPlane(move, m_GroundNormal);
    When the character is transitioning from airborne to crouching, they lose all forward momentum. It looks and feels ridiculous descending a slope as the character stops every half second or so. I am trying to have the character simply move forward regardless of transition.

    I honestly can't figure out what is causing the character to just stop dead each time it makes the airborne -> crouch transition. If someone could just point me in the right direction as to how to allow the character to simply keep moving during the transition, I'd be eternally grateful.

    I *feel* like it might be somewhere in the HumanoidCrouch animation, but I don't know how to stop this behavior from occurring.