Geometric modeling of biological and robotic locomotion in highly damped environments