Skip to content

Raise Terrain under a chosen Mesh, i.e. for integrating roads into your terrain.

License

Notifications You must be signed in to change notification settings

JeremieConstant/Unity-Terrain-Under-Mesh-Road-Helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Demo Video

Unity Terrain Under Mesh Road Helper

Helper to raise terrain under a chosen mesh—e.g., for integrating roads into your terrain.

Dependencies

Usage

  1. Create a terrain in your scene.
  2. Create a spline along your terrain.
  3. Add Spline Extrude Component to the spline object to create a road.
    • Set Shape Extrude Type to "Road" (or any desired type).
    • Select your desired radius.
  4. Add Mesh Collider Component to the spline object.
    Do NOT skip this step!
  5. Add the TerrainDeformer script to your terrain object.
  6. Assign your spline object to the Road Mesh Object field in the script inspector.
  7. (Optional, pt. 1) Increase spline radius by 10–20% for better results (you can revert this later).
  8. Open the context menu and select Project Mesh to Terrain.
    ⚠️ Warning: This step is destructive and non-reversible!
  9. (Optional, pt. 2) Revert the radius back to its original value. ⚠️ Warning: This step is destructive and non-reversible!
  10. (Optional, pt. 2) Revert the radius back to its original value.

About

Raise Terrain under a chosen Mesh, i.e. for integrating roads into your terrain.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages