Adjust terrain after placed object

Hey.

Im not entirely sure if theres a specific name for this so im gonna try explaining it as good as I can.

I need help to create a script that adjusts the terrain around an object on spawn or placement.

So lets say i wanna place a building in a slope then i would either wanna raise (flatten) the slope around the building or lower it around the building. Sort of how Cities XL does it when you place lots and areas.

are you using unity’s built in terrain?

if so you need to look at the terrainData and modify the height map

have a google on “unity script change terrain data” and you should find plenty of examples

I will look into that :smile: thanks