Wall Crawling Raycast

How can I make my wall crawl smoother. How can I make it smoothly transfer to the other side of the wall. I used raycasting.

1 Like

this might not be very good performance wise, but i would find the closest part to the player raycast directly in front with like 1 distance and if it hits make the character position the raycast position + the raycast normal , so even if it does hit a corner it (might) work on the corner