Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using the Terrain Height in Script

For a script i need the Terrain Height (found under Resolution in Terrain).

I tried it with terrainData.heightmapHeight and terrainData.heightmapResolution but both of them seem to be wrong.

I made a screenshot so that you can easily see what value i need:

enter image description here

like image 226
AlpakaJoe Avatar asked May 21 '26 11:05

AlpakaJoe


1 Answers

You can use terrainData.size to get the maximum size of the terrain in world units, so for that value, it would be terrainData.size.y

like image 68
Ruzihm Avatar answered May 23 '26 01:05

Ruzihm



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!