Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved Is denting terrain in real time possible?

Discussion in 'Scripting' started by jlorenzi, Nov 17, 2023.

  1. jlorenzi

    jlorenzi

    Joined:
    May 2, 2021
    Posts:
    283
    I'm making a snowboarding game and I want to push the snow terrain in a bit when the player runs over it. Any clue on how to achieve this or are there some illusions I could use to make it look like the terrain is changing?
     
  2. halley

    halley

    Joined:
    Aug 26, 2013
    Posts:
    2,280
    Instead of modifying the terrain data, most games with this sort of mechanic will use a render-texture and a vertex displacement shader. This is just one of many tutorials I found which covers it; you can adjust how deep the effect works.

     
    CodeSmile, zulo3d and Bunny83 like this.