Best Way to Implement Sonic like Loops

Godot Version

4.4.1

Question

I’m trying to make a sonic like game and making loops for the player to run through feels really tedious (Having to make 3 statics bodies with collision polygons on different layers then having 2 area bodies to change the collision mask and layers for the player for one loop). Not only that but there also layering (running in front then behind the loop and not messing with anything else).

Does anyone have any ideas on how to make system that’s more efficient

sonic loop1

sonic loop2

I can think of a few ways it could be done, but better yet you can literally find out from this website that reverse engineered the whole thing: