Godot Version
4.1.3
Question
I’m making a platformer where the player is able to dash horizontally. When they’re dashing, their hotbox is sideways so they can get through smaller spaces. When the player hits a wall, they stick to it, until the player jumps. When the player does that, they sometimes get stuck in the ceiling if the wall they dashed into was right under a ceiling. (I’m not sure if it’s relevant, so I’ll mention that I’m using a tile map with collisions for all walls, ceilings, and floors.)
I know that this is caused by the players collision shape rotating back to 0 degrees from 90 degrees, causing them to clip into the ceiling. Is there a way to avoid the player getting stuck like this?