Been stuck on this one for a few days.
I have an axe that moves around with the mouse. When the mouse is in range of a tree, you can left click to start the axe swing animation. Once the animation is complete, it goes back to the idle state in the Animation Controller.
The problem with the current solution is the axe can clip through the geometry of the tree. I tried the 2 camera system (setting depth) to render the axe on top, but it didn't feel good.
The tree and axe has colliders on them. The axe has a rigidbody.
I then tried another idea. I disabled the animation controller for the axe on collision enter, and set the axe isKinematic to true. This worked, the axe would not clip the tree, however, once I enabled the animation controller, the axe animation would continue to playing. So I tried to switch the state back to idle and thought maybe cross fading would solve it, but it didn't work.
Is there a better way to do this?