Wallrunning on curved walls/objects

Hi all,
I have been having some trouble with creating a wallrun that is functional with curved walls.

My current setup uses two box colliders, one on each side of the character, to check if there is an object with the tag “wall”. If there is it does another check to see if the player is falling and then constraint the z plain. This allows the character to basically “wallrun” until the box stops overlapping with an object with the tag.

Unfortunately this does not work as I thought it would as the wallrun ends even if the box overlaps with another tagged object. I have tried finding tutorials for it, but had no luck as they were all for straight walls.

If anyone has any ideas, suggestion or links to tutorials I would really appreciate it!