What happens when two 2d colliders meet?,What happens when two box colliders meet?

I have a character that has a box collider and I have a wall that has a box collider when they meet and I press the arrow to the wall it stays there.,So I have a character that has a box collider and a wall that has a box collider when the character hits the box collider it stays if I keep on pressing the arrow to the wall.
Is there any way to avoid this?

I dont get exactly what are you asking here, but you should take a look at:

colliders

and

rigidbodies

:smiley:


look at that image

The title doesn’t match the question, but here’s a solution:

  1. Create a new Physics Material 2D asset.
  2. Set its Friction to 0
  3. In your Rigidbody2D, set its Material to your new PhysicsMaterial2D.