Get the height at the point where the entity was clicked


Is it possible to get the height where the user do click over an entity? Not the terrain height, but the entity height at that point.

Thanks to all,

Juan Carlos

The function scene.pickPosition should give you this value:

It’ll be a Cartesian3, which you can convert to a Cartographic to get the height. Does that work for you?

Yes, it works. Thanks a lot!