Child collider2d sometimes falls through Polygon 2D terrain

This is a little easier to picture than explain, so please see the picture. My player is set up as a parent object with most of the behavior, and a child object with a Circle Collider 2D to act as its feet. This allows different friction for feet vs body among other things.


My issue is that sometimes when the character falls on my terrain- a Polygon 2D Collider/Rigidbody 2D- the feet don’t collide at all- only the body. In addition, the body doesn’t collide with the first “layer” of the terrain, only the second one. The first layer is a line I created for the ground, the second is one of the autogenerated lines. The vast majority of cases the feet collide as expected. I have no explanation for this behavior. It typically only happens when the player is falling onto the terrain with decent speed and from height. Any solutions or help would be vastly appreciated.

Thanks.

Solution: Collision detection mode to Continuous instead of Discrete on the player Rigidbody.