I am trying to replicate Mario Maker's On/Off switches in Godot 4.1.
In my current version, if the player got stuck inside the block after it was toggled on, the player just teleports out it. I know this is expected, but I wanted a smoother transition.
After looking it up, I found a video replicating the same feature in Godot, but the player, when stuck inside the block, slid out it, much more smoothly (see 0:33 in the video).
How can I replicate this smoother overlap resolution?