Search code examples
c#unity-game-enginegame-physics

capsule collider not jumping in unity


i imported a the Unity chan character from unity assets store , when i and i added to it rigidbody and capsuleCollider ,and then i assigned to it the

JUMP00 animation as in the images , so when i hit play the character jumps but the collider is not moving up , when i add motion to move x and z axis the collider moves with the character.

enter image description here enter image description here enter image description here


Solution

  • This behavior is by design. Animation only move the mesh, it does nothing to collider.

    One workaround to this problem is that you can attach your collider to the bone not the mesh.