I have a enemy with colliders on each head, body and 2 legs. When i instantiate a bullet it often hits 2 colliders. A leg and body or head and body. I have different animations for all the body parts. I am getting weired reacting because of multiple collisions. What can be done? Any help would be appreciated.
If you do it, so it has an order of detection (so if the head is hit, then it doesnt matter, if the body, arms or legs are hit too) , then it can solve the problem very easily. One way to do this is an if…else chain. I would use variables to store the hit data and then in an external script do the animation. Hope it helps.
1 Like
I am using boolean to store which part is hit. Both the legshot boolean and bodyshot boolean get marked when shot.