wall sliding on a non +90 degree wall

Hello,
a newbie here.

I was wondering if there are a way to make a wall slide work on a non-90 degree wall.
I’ve followed a tutorial that showcased it by using tilemaps and line trace by channel. but in my case,
I want to make the walls wonky and couldn’t make it work properly.

Currently my character changes rotation, possibly as a result of the capsule component.


image

thank you for your time