Ok, I've started looking at your patch. It's got some interesting changes quite aside from the extra capsule stuff, I hadn't realized.
Some notes:
I cannot see what's wrong with your contact code with a quick look. In my experience most problems arise either from being inconsistent with separation for different modes that border each other, or doing warm starting incorrectly. I would disable the latter until you are confident the rest works well.
Some notes:
- There's quite a lot of AdjustDifference variations - 4 main ones, plus AdjustGJKDistance, and some in the supporters. Undocumented, I find it too hard to figure out what their different purposes are. Basically, I think a better name is needed.
- Should there be a DistanceAdjust version using distanceSqr, seeing some of the original code you are replacing worked that way?
- I don't see the purpose in the supporter system, it is just copying data for no reason. Except for XForms, but I don't see why those cannot be additional arguments like they are elsewhere in the system.
I cannot see what's wrong with your contact code with a quick look. In my experience most problems arise either from being inconsistent with separation for different modes that border each other, or doing warm starting incorrectly. I would disable the latter until you are confident the rest works well.