Centes move by undulating their body in a wavy motion while walking on their many pairs of legs. Each leg moves in a coordinated manner with the others, allowing the centipede to crawl along the ground or up walls. The legs are also used for sensing the environment, allowing the centipede to detect obstacles and navigate its surroundings. Some species of centipedes are also capable of moving quickly by running or even leaping.