Player Moving through walls.

We are making a 2d game i am using a tilemap collider 2d on foreground tile set and a box collider and rigid body2d on the player, if approached from the top or bottom the collision works properly, but if the player approaches a collision tile from the side the player just slides into it.

It’s an interesting story but unfortunately nothing anyone can help you with without some useful information such as video, images, movement and/or collision detection scripts etc.

I’m having this problem too, and I don’t get why unity has problems with wall collisions if ground collisions work.

There are no “problems with wall collisions”. There isn’t a bit of code in Unity for “wall” collisions and a separate bit of code for “ground” collisions!

You’ll be doing something wrong but because, like the top post, there’s no information provided, nobody can help you. I understand it’s easier for you to assume that Unity is broken in some specific way, nevertheless, it’s interesting you assume this when you’re new to it.

So in summary, just like your cross-posting here , no information to help you.