Reference is similar to the Prince of Persia kind of Feiyanzoubi, endure dragon too fast and host platform is not good reference.
There are a number of ways to judge with a ray. I use the gameobject dot to do it, and then edit the path through the model surface grid.
Some points of the question
1. First select the closest point to the current player and then use the player orientation as an incoming parameter.
2. With this dummy point of practice, do not need to judge and the foot of the 90-degree angle, only need to do with the next point of the margin, judging by the character's current point to the left right. The details are not written so that you can determine if the wall is greater than 90 degrees and then cancel the jump
3. The state-based machine does have some helpful effects.
DP Project Development Codex 1-Feiyanzoubi module completed basically