Weapon collision react to mesh

I’m trying to get the weapon to be held up or down when it’s too close to a mesh. Can this be done using IK or would I absolutely need custom anims for holding the weapon out of the way?

I’d modify bones for that. It’ll be more flexible and realistic than an animation. Plus you get a few bonuses:

  1. You can use the same effector to raise the gun for aiming down sights. This is better than an aim animation alone because different weapons have different dimensions. So raising one weapon so you’re aiming down its sights will need the right hand in one position while aiming a different weapon will need it in another (ex: M4A1 vs M416). Add scopes into the mix and you have even more possibilities.

  2. You can add in an offset to simulate recoil when the weapon is fired. You can drive it with a timeline in the character code. That’s what I’m doing and I’ve been very happy with the results.

Realized I never said “IK” explicitly. To be clear: what I described, I did using the FABRIK node.