You can check if multiple points under the character are overlapping the ground or not. Depending on which points are overlapping, adjust the character angle and angle of gravity.
Another possible solution would be adding invisible sprites (circles, rectangles) to the layout. When character is overlapping these sprite, set its angle to sprite center, or away from it.