I’m trying to simulate a spider walking along the edges of a 2D (square) tilemap and am running into a few issues, especially so when turning upside down.
This works very well for their terrain layout, but moving along just the four cardinal directions is trickier than I anticipated! I managed to get the spider walking along the top, right and left directions, but when going upside down the numbers start going rather crazy.
Has anyone else managed to achieve something similar?
As I didn’t recieve much input on this I instead opted for a more hard-coded solution, using a combination of raycasts and determining what side of the wall to be on based on the direction of the movement. Not ideal, but it works.
I am using the same link you posted to make a spider movement for a platformer having some struggles, would you share your code? maybe i can pinpoint my problem then