During locomotion, an insect must solve essentially the same problem as a vertebrate although it has an external, rather than an internal skeleton. This is reflected in how the muscles are connected to the skeleton (Fig. 2). For the skeletal model, we follow the implementation from existing work11 and model the virtual insect as a hierarchy of connected rigid body.Figure 2Muscle attachment of the femur-tibia joint on a virtual ant.