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

2D Desturctible Terrain

Discussion in 'Scripting' started by gioworks, Nov 5, 2012.

  1. gioworks

    gioworks

    Joined:
    Oct 12, 2011
    Posts:
    138
    Is this possible to make? Any idea how, any resources or infomations link?

    Thanks in Advance

    I found this :

    http://motionos.com/terrain/

    But no idea how to do it.
     
    Last edited: Nov 5, 2012
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,350
  3. lordofduct

    lordofduct

    Joined:
    Oct 3, 2011
    Posts:
    8,514
    Sure it's possible. There's numerous ways to accomplish it as well.

    You just need a few things to consider.

    1) how is your collision represented? And can that be updated/dynamic? If not you need a new method to represent terrain collision because your collision is going to be altered as the ground is destroyed.

    2) how is your terrain drawn? And can that be updated/dynamic? If not, you need a new method of representing the graphics of your terrain.

    as well as possibly:

    3) how is your AI pathing through your terrain calculated? And can that be updated/dynamic? If not, you need a new method of representing that as well.
     
  4. Democre

    Democre

    Joined:
    Mar 31, 2010
    Posts:
    345
    Also what kind of destruction? freely destructible (anything goes) or mesh swap and breakdown(predicted and planned for)?
     
  5. lordofduct

    lordofduct

    Joined:
    Oct 3, 2011
    Posts:
    8,514
    yes, you need to know what kind of destruction you want too.

    I was merely pointing out you need your world's data to be set up to allow dynamics up front... no dynamic world, no dynamic destruction.