i actually find a dumb solution, basically, once the camera touches a box, it inverts the player input and when it’s not it puts it back to normal
works for now but i haven’t tested it with the wall system, might change