Player gets stuck on the edge of the collision.

alt text
alt text

It also sometimes happens when you are standing right next to a wall, only in this case player acts as if there’s obstacle right overhead. It’s like if the tiles have absolute friction.

The code that is responsible for the movement of the character object is from Unity’s template platformer project, with a slight one line of code modification to discrete the resulting position for pixel snapping:

Hey there!

This is why I like to use a CapsuleCollider2D for any character, with a PhysicsMaterial2D configured like this:
alt text
This should keep the player from getting stuck like that.

Hope it helps!