Manipulating terrain in-game

Hello,

Is it possible to manipulate the terrain in-game?

For example, lowering the closest terrain node (not sure if that is the correct term) to the player when he press a button. Been looking through the documentation but can’t figure out if this is possible or not.

Anyone know how/if this can be done?

you would alter the heightmap of the terrain

Yes. You can use GetHeights and SetHeights to do this.

Thanks guys

I figured it was with those functions but couldn’t get them to work at first, but I found an old forum post about it and also realized that I had to divide my player’s position down to the heightmap size (that was smaller than the world size). Works great now!