Search Unity

Question How to have an animated sword hit a bell with a rigidbody?

Discussion in 'Physics' started by Kimproductions, May 12, 2022.

  1. Kimproductions

    Kimproductions

    Joined:
    Feb 28, 2018
    Posts:
    6
    I have a sword that has a simple swing animation and a rigidbody on it. I'm trying to get the sword to hit a bell in a natural way, but the bell kind of phases around strangely. The bell has a hinge joint on it. Here's a gif: May-12-2022 14-50-13.gif

    I've heard that since the sword is driven by animation rather than physics, the bell would behave strangely. How can I fix this so the bell doesn't disconnect and also make the hit look more natural instead of jumping around? Is there any way to do this using animation instead of physics? I plan to make more elaborate sword swings and it would be extremely difficult to do using physics instead of animation.

    Here's a picture of the bell settings:

    Screen Shot 2022-05-12 at 2.51.01 PM.png

    Sword settings:

    Screen Shot 2022-05-12 at 2.51.25 PM.png

    Thank you!