Character Walk on a Wall? (E.g Sonic running around a loop)

You has solved this paradigm? If you managed to solve it, please tell me how?

I’m curious.

I was intrigued by a similar effect in an old game called Prey