You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can use functions on the HTerrainData resource, which is available on the data property of the terrain node.
There is get_height_at and get_interpolated_height_at.
They expect coordinates in local space though, and return the height in local space as well, so you may have to convert them back to world space if you scaled the map with map_scale or the node's transform. get_internal_transform() may be used to convert between cell space and world space.
Alternatively, the terrain node has a cell_raycast method to raycast the ground in world space, though it returns 2D coordinates in cells.
A regular physics raycast would also give you that.
Is it possible (via script) to determine the height parentheses y-coordinate given an x-coordinate and a z-coordinate?
In other words, if I provide an X and Z can I return the Y?
The text was updated successfully, but these errors were encountered: