I’m trying to make a wall run in blueprint where if the wall is in front of the player they will run up the wall, but if the wall is to the side they will preform a wall run. My problem is I can’t seem to figure out how to get the angle between the wall and the player to reliably decide which one to do.
Here is an illustration of exactly what angle I’m trying to get, hopefully it helps.
I’ve already set up a trace for the wall and stored the wall normal and converted it to a rotator, and I’m guessing my best bet is to use the yaw of the player and the wall to get the angle I need, but I can’t seem to figure out how. What is really throwing me off is that the rotator’s don’t seem to be 0-360 like i thought it would, but instead its returning values between -180 and 180.