Kinematic character gets stuck in walls when using tile collisions

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Fractal

My KinematicBody2D character is occasionally getting stuck in walls and isn’t being pushed out of them, even when I place them in the dead center of the wall like in the image. If I use large StaticBody collision shapes that cover the entire wall, the character gets pushed out of it just fine, but I guess because I’m using tile collisions and it’s not a solid shape, it’s not being properly pushed out. Are there any feasible solutions to this besides just using full collision shapes?
Here’s what my setup looks like in-game with collision shapes shown

:bust_in_silhouette: Reply From: CassanovaWong

https://www.reddit.com/r/gamedev/comments/3737wh/5_ways_to_stop_colliders_getting_stuck_in_floors/