Some foraging ants will wander in a tortuous path to locate a food source, yet return to the nest in a relatively straight line. One method of navigation would be to locate the the nest in the visual field and then orient to the nest or a nearby landmark. Another method is to use ideothetic cues or leg movements. Some ants can track the numbers of steps taken in multiple directions, then integrate the information to calculate the direct path back to the nest.
Path integration for ants involves tracking the numbers of movements of the legs. An ant stride is a constant length so counting the number of strides allows computation of distance. If the length of the stride of an ant is artificially manipulated, the ants can no longer correctly determine the correct distance. Their calculation is off by the change in the length of the stride.