Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Colliders ignored while animating

Discussion in 'Animation' started by Cosmology27, Sep 12, 2022.

  1. Cosmology27

    Cosmology27

    Joined:
    Jul 11, 2019
    Posts:
    61
    I have an enemy with animations built in that I made. The enemy has box colliders on his body parts. I also have a gun that shoots bullets. I have the enemy coded so that he will spurt blood when shot, and after a few shots he will become a ragdoll. It works perfectly, until I turn on the animations. Once animated, the bullets completely ignore him, passing right through, and hitting whatever is behind. Neither the enemy nor the bullet is kinematic. Why is this happening?
    Then another issue I'm having, if I turn off animations, and have a navmesh guiding him to a destination, if I shoot him, he rockets into the air... Why would the physics change just because he's following navmesh to his destination, and how do I make it act more normal?
    Thanks for any help you can provide.
     
    Last edited: Sep 13, 2022