# Gun clipping through arm during third-person animation

I have been setting up a Blend Tree for motion animation in Unity. I'm using Root Motion for now. I parented the gun to the root of the player and then I use OnAnimatorIK to lock the two hands in position.

The overall looks and feel is great by my standards. The only thing I am disappointed about is the butt of the gun clips through the character's upper arm when running.

Is there a way to crop this in the game? I'd like to avoid going into a 3d Editor and making it two separate meshes which I could then I guess somehow disable. I'm hoping there is a better way to handle this situation.

Also I wonder if the gun being parented to the Root player object is wise. I had tried parenting to the 'right-hand' bone but this made the gun point upwards about 45° and looked silly.

• It looks like moving the gun position a little further forward when running would fix the visible clipping from this angle, and look more correct from other angles if this character can ever be seen from the side (eg. in a cutscene, replay, etc. even if you have no multiplayer) – DMGregory Apr 16 at 15:27
• @DMGregory FYI: I am using Microsoft Edge (brand new install) and I get hefty crash/black screen inside of Edge only when using this website and only when i try to post my question and/or answer. It does not happen during comment posts or on any other website – RetroCoderTV Apr 16 at 15:36
• I haven't experienced that on Edge in my use of the site. It sounds like a bug to report to the StackExchange team or to Microsoft. – DMGregory Apr 16 at 15:38
• Thanks will do. – RetroCoderTV Apr 16 at 15:39