real time body motion tracking

Question: considering arduino due as the main controller, how would you best detect the motion of body parts (arms, legs, etc) in real time and translate that motion into servo movement? Gyros or accelerometers? Keep in mind this must be physically attached to the most? I was also pondering ir detection of some kind similar to how a track ball mouse works…ideas?