I cant seem to figure out how to accomplish the terrain terraforming in unity. Something like this is what I am trying to accomplish.
1 Answer
1Terrain functions are all documented at Unity - Scripting API: TerrainData
You can retrieve the current terrain height at given world coordinates using Unity - Scripting API: Terrain.SampleHeight
You can also get an array of heights from the terrain data, modify them, and set them back again by referencing them using array index in the terrain data.