Is there a way to create walkable boxcolliders?

I looked up in the internet, trying to find a solution for my problem, but i couldn’t find anything realting to this.
Right now, I’m trying to create a simple platformer game on which you’re able to take damage if entering specific game object as a player. However, when I create a collider my player gets stuck at the lines definig the boxcollider.
Does anyone know how to change this?

If I am understanding your question correctly, you should be able to accomplish what you want, by checking the IsTrigger option in the box collider, and adding your damage code to the OnTriggerEnter method.

With the collider set as a trigger, your character can walk through it without problem.

Hope this helps,
-Larry