The largest ape to roam Earth died out 100,000 years ago because it failed to adapt to eating savannah grass after climate change affected its preferred diet of forest fruit.

Gigantopithecus – the closest nature ever came to producing a real King Kong – weighed five times as much as an adult man and probably stood 3m (9ft) tall, according to rough estimates.

In its heyday a million years ago, it inhabited semi-tropical forests in southern China and mainland south-east Asia.

Until now, though, almost nothing was known about the giant’s anatomical shape or habits.

The only fossil records are four partial lower jaws, and perhaps a thousand teeth – the first of which turned up in the 1930s in Hong Kong apothecaries, where they were sold as “dragon’s teeth”.

These meagre remains “are clearly insufficient to say if the animal was bipedal or quadrupedal, and what would be its body proportions”, Herve Bocherens, a researcher at Tübingen University in Germany, said.

Its closest modern cousin is the orangutan, but whether Gigantopithecus had the same golden-red hue, or was black like a gorilla, is unknown.

Examining slight variations in carbon isotopes found in tooth enamel, Bocherens and an international team of scientists showed that the primordial King Kong lived only in the forest, was a strict vegetarian and probably wasn’t crazy about bamboo.

The Gigantopithecus, a giant gorilla that looks like King Kong, disappeared 100,000 years ago from the surface of the Earth due to the inability to adapt to environmental changes, according to scientists. Photograph: H. Bocherens/AFP/Getty Images

These narrow preferences did not pose a problem for Gigantopithecus until Earth was struck by a massive ice age during the Pleistocene epoch, which stretched from about 2.6m to 12,000 years ago.

That’s when nature, evolution – and perhaps a refusal to try new foods – conspired to doom the giant ape, Bocherens said.

“Due to its size, Gigantopithecus presumably depended on a large amount of food,” he said.

“When during the Pleistocene, more and more forested area turned into savannah landscapes, there was simply an insufficient food supply.”

And yet, according to the study, other apes and early humans in Africa that had comparable dental gear were able to survive similar transitions by eating the leaves, grass and roots offered by their new environments.

But for some reason, Asia’s giant ape – which was probably too heavy to climb trees, or swing in their branches – did not make the switch.

“Gigantopithecus probably did not have the same ecological flexibility and possibly lacked the physiological ability to resist stress and food shortage,” notes the study, which is to be published in a specialist journal, Quaternary International.

Whether the mega-ape could have adapted to a changing world but didn’t, or whether it was doomed by climate and its genes, is probably one mystery that will never be solved.

• The picture caption to the second image was amended on 12 January 2016. An earlier versions said the Gigantopithecus disappeared a million years ago from the surface of the Earth. This has been corrected to say 100,000 years ago.

