I was trying to find height of terrain (ground altitude) for different locations by creating different objects by SimConnect_AICreateSimulatedObject() function and setting positions of each object and then requesting GROUND ALTITUDE data from them. I confirmed that objects were set to correct positions by looking at their visuals. However, the GROUND ALTITUDE data I retrieve is the same for all objects, same as the aircraft itself.
This method was applicable in FSX but it seems it's broken in MSFS2020. Do you know any other way to retrieve height of terrain for different locations?
Thanks in advance!