Search Unity

NavMeshAgent with RagDoll keeps ducking and goes flying when animation stops

Discussion in 'Navigation' started by breenen, Mar 1, 2020.

  1. breenen

    breenen

    Joined:
    Aug 7, 2018
    Posts:
    5
    Hi,

    I have added the ragdoll stuff to an ememy unit who is a navMeshAgent, normally he walks along just fine, but now with the ragdoll attached, he keeps ducking.

    Also, when i disable this animation (i.e. what i would do when he is killed), he goes flying (which looks like it could be fun, but not my desired effect... just want him to drop to the floor)



    Anyone have any ideas on these issues?
     
  2. breenen

    breenen

    Joined:
    Aug 7, 2018
    Posts:
    5
    ok, sorted now...

    1. enemy was ducking, because the "thirdPersonController" script i had attached had a collider, which was around the whole player, however the RagDoll joint colliders were touching this, which kept making the player duck.

    2. the reason they flew all over the place, was because the ragdoll joint colliders were too big, and where touching other joint colliders... i reduced the size to these and it works nice now
     
  3. Hacktivist2007

    Hacktivist2007

    Joined:
    Dec 29, 2021
    Posts:
    25
    How did you scale them down effeciently?