The south-pointing chariot (or carriage) was an ancient Chinese two-wheeled vehicle that carried a movable pointer to indicate the south, no matter how the chariot turned. Usually, the pointer took the form of a doll or figure with an outstretched arm. The chariot was supposedly used as a compass for navigation and may also have had other purposes. The ancient Chinese invented a mobile-like armored cart in the 5th century BC called the Dongwu Che (). It was used for the purpose of protecting warriors on the battlefield. The Chinese war wagon was designed as a kind of mobile protective cart with a shed-like roof. It would serve to be rolled up to city fortifications to provide protection for sappers digging underneath to weaken a wall's foundation. The early Chinese war wagon became the basis of technologies for the making of ancient Chinese south-pointing chariots. There are legends of earlier south-pointing chariots, but the first reliably documented one was created by the Chinese mechanical engineer Ma Jun ( – 265) of Cao Wei during the Three Kingdoms. No ancient chariots still exist, but many extant ancient Chinese texts mention them, saying they were used intermittently until about 1300. Some include information about their inner components and workings. There were probably several types of south-pointing chariot which worked differently. In most or all of them, the rotating road wheels mechanically operated a geared mechanism to keep the pointer aimed correctly. The mechanism had no magnets and did not automatically detect which direction was south. The pointer was aimed southward by hand at the start of a journey. Subsequently, whenever the chariot turned, the mechanism rotated the pointer relative to the body of the chariot to counteract the turn and keep the pointer aiming in a constant direction, to the south. Thus the mechanism did a kind of directional dead reckoning, which is inherently prone to cumulative errors and uncertainties. Some chariots' mechanisms may have had differential gears. Historical texts Earliest sources The south-pointing chariot, a mechanical-geared, wheeled vehicle used to discern the southern cardinal direction (without magnetics), was given a brief description by Ma's contemporary Fu Xuan. The contemporary 3rd century source of the Weilüe, written by the East Han dynasty politician Yuan Huan also described the south-pointing chariot of belonging to the Chinese mechanical engineer and politician Ma Jun. The Jin dynasty (266–420) era text of the Shu Zheng Ji