Recently ive been working on a Wall Climb Script but i cant find a whole lot of Info about Corners/Edges for wall climbing. Ive looked through a few different posts and through Scripts in those posts but i couldnt find exactly what i was looking for. Not looking for a script but rather all I need is information on how i should Detect a player going around a corner currently i just use Raycasting but the way i am doing it isnt working out very well. Any help is Appreciated!
I am trying to get it to be consistently like this
I would cast two rays: one based on the move direction of your character from your position, and then another one from a distance ‘x’ or the distance the move direction ray hit, with an offset in front of your character’s position/direction. This way, you can determine which corner is approaching first, and you can rotate your character based on the Ry angle from the wall.