How to disable collision of hemispheres in a capsule?

How to remove two hemispheres from the capsule and leave only round middle part? For a cylindrical wheel, i think it’s easier than doing the same on raycast from scratch.