Hello constructors, I have some trouble to figure out how to make a crawling character AI.
What I want to achieve is a computer controlled character which crawls along the edges of walls rotating accordingly.
The logic is shown in the picture.
Normally the character crawls following a straight floor (A).
When he encounters a convex angle (from left to down) he rotates and then crawls down the wall (B).
When he encounters a convace angle (from left to up) he rotates and then crawls up the wall (C).
All of these logics should work in case any angle (D,E,F).
Also, since the character is "crawling to the right", these logics should be mirrored when he is "crawling to the left".
Any suggestions?