Change WorldTile terrain height
Change WorldTile terrain height
Section titled “Change WorldTile terrain height”Write your generated terrain value to the member that actually represents WorldBox tile height.
Before you use it
Section titled “Before you use it”You must already have a real WorldTile tile from your world-generation or tile-processing flow. This recipe only answers where height is stored on the tested build; it does not define a universal way to enumerate or create tiles.
Verified access paths on the tested build:
tile.Heighttile.data.heightFor TerraForge, tile.Height became the preferred access path.
Do not use health
Section titled “Do not use health”An early experiment mistakenly treated:
tile.healthas terrain height. It was wrong.
This is a useful debugging split for generators:
Is the continent/noise math correct? vsAre we writing to the actual terrain-height storage?If the world stays ocean even though your math looks right, verify the write path before rewriting the entire generator.
Open the WorldTile.Height reference for the exact evidence and compatibility boundary.