Raising the terrain until it hits a collider

Hi,

I’ve never done any terrain / mesh scripting so I don’t know much about all the procedural stuff. I basically want a function that stops raising the terrain as soon as it hits a flat collider (for example a road). Best example is the function in EasyRoads where the terrain automatically goes up and down related to the height of the road you are creating.
To sum up, I need something like this, only with for a mesh I imported before and set up in the scene.

My question: Is it possible with the API functions of Unity? Is there any script available I can start with, for example to select a specific area and do something with it?

I highly appreciate any help!

Do they have that in E Roads free? If not the feature may come with the free river path tool that they offer. :smile:

Are you sure? Did you ever try it?

I am once again searching for a possible solution. Anybody there who could help me or has an idea about this?

I think this could be a start: Modifying terrain height under a gameobject at runtime - Questions & Answers - Unity Discussions