How can I customize character's capsule collision?

I can only make it wider and taller but this is not enough.

When I want to prevent the weapon from overlapping a wall I need to put some extra collision only where the weapon is, but it won’t prevent from the player to walk forward.

I see there is an older thread about it:

This is very important, Is there any solution for it yet?