I\'m using Cesium in 2D mode. This is the code I\'m using to take the terrain height at mouse position:
cartographic = Cesium.Ellipsoid.WGS84.cartesianToCartograp