Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Lift terrain heightmap up to match arbitrary colliders

Discussion in 'World Building' started by Kurt-Dekker, Jul 10, 2020.

  1. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,517
    I was working with a fellow over in the Scripts forum (@Zer0Cool ) and we collaborated to come up with this cute little terrain lifter thingy. This editor script goes on a GameObject with any number of child gameObjects and colliders, you place it above a terrain, specify parameters (see window in video) and then it "matches" the terrain up to the colliders smoothly. Matches either to the top of the colliders or the bottom of the colliders. Full source in video comments too.

    https://twitter.com/kurtdekker/status/1281619776587001856



    Full source at: https://pastebin.com/DYFAYgnE
     
    Zer0Cool likes this.