Best physical player representation for walking slopes,etc.

Hi, what's best physical form for character if I want to give him ability to walk on curved surfaces?
At first, I made my character as rectangle. But he couldn't step over small heights, for example when one ground rectangle is 0.5 pixel heigher than another. Then I've made my character's legs as circle and the player got ability to step over small height and it has become easier to determine angle of player and ground collision.
Code:
var worldContact:b2WorldManifold = new b2WorldManifold();
contact.GetWorldManifold(worldContact);
var normal : b2Vec2 = worldContact.m_normal;
angle = ( Math.asin(normal.x / normal.Length()) / Math.PI * 180);

But the result is far from perfect. I think,that there is a good result in this video http://www.youtube.com/watch?v=LijiW5HOUZM , but how the legs are made there, some kind of joints?

Original thread: https://box2d.org/forum/viewtopic.php?t=5047