How to prevent my character from breaking colliders

Hi I have made a 2d game and I have a problem with 2d physics, my character always enter in poliygon collider 2d with his legs while jumping, how can i prevent my charecter doing it?

Ps: all my character body parts have a box collider (they are rectangles)

I’ve never solved this problem for 2D, but taking a quick look at the settings, you might play with the following settings in Edit > Project Settings > Physics2D:

  • Position Iterations
  • Max Linear Correction
  • Velocity Iterations
  • MaxAngular correction

Note that some of the setting are not in the online reference, so I’m not sure when they were introduced nor even that they are related to your issue.

You might also try: Edit > Project Settings > Time, and reduce Fixed Timestep…may going from 0.02 to 0.01