Thanks for your awesome plugin. I really want to be able to query a height somewhere for the sake of placing trees etc by code.
I couldn't find any documented featrues to probe the terrain but notes in the code.... all i seem to be able to get back from cell_raycast is null, i look through it i wondered if it's even finished or working?
Using cell_raycast (it has types and a documentation comment in code, I recommend looking it up. Even if API docs existed for the plugin, thats the same thing you'd see in there): this one is specific to the heightmap and will only detect the heightmap. This function should work because it's what the plugin uses for everything in the editor. I don't know what you tried, but all it takes is a ray as a begin world position, a direction unit vector, and a maximum distance. It's used here for example: https://github.com/Zylann/godot_heightmap_plugin/blob/e51c544cd8282bae83ba4ef0fc10884e9216d37a/addons/zylann.hterrain/tools/plugin.gd#L449
If you get null all the time it probably means you are not giving the right arguments?
Hi
Thanks for your awesome plugin. I really want to be able to query a height somewhere for the sake of placing trees etc by code.
I couldn't find any documented featrues to probe the terrain but notes in the code.... all i seem to be able to get back from cell_raycast is null, i look through it i wondered if it's even finished or working?