Walking is, in engineering terms, software not hardware. Your brain had to learn how to do it and it used nerve feedback to do it. When your nerves are giving bad feedback due to whatever reason, e.g ‘falling asleep’, your ‘device drivers’ for your legs are getting bad feedback so you can’t walk correctly
Latest Answers