How do I stop an animation from clipping through an Object?

I have created a Sword (cylinder) with an animation of it swinging. It detects collision and still works the method I created for it to do damage, but it swings right through the object it hits. Honestly it looks weird and awful. Is there a way to fix this? The sword does have a rigidbody on it and a mesh collider. It’s set to continuously check collision, but yet it still goes through.

Hello there.

In deed it is the better solution, you need to have a lot of animations that suites your needs, the cheap games do not bother to change the animation (speaking about swords and any kind of medieval weapons), they only go through it, without stop, but they make the foe reacts to the hit, moving it backwards or even throwing it away, so, if you are planning to makes the player weapons react to every hit, you need many animations for sure, cheers.