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

Tried this; Doesn’t seem to work as well as it sounds; Also won’t line traces quickly stack up in terms of affecting performance if they’re constantly doing it?