Problem with Ragdoll

Hi, I tried something like this http://www.youtube.com/watch?v=5DbTZJ103_A , but when my character has collision with some cube, he didnt do similar action with leg like the robot in video. Is there anyone who has experiences with this? I learned from this video http://www.youtube.com/watch?v=b-1N7pabMRg.