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

how to simulate soil while digging

Discussion in 'Editor & General Support' started by Kashif Amin, Jan 20, 2011.

  1. Kashif Amin

    Kashif Amin

    Joined:
    Oct 28, 2010
    Posts:
    30
    Is there any way to simulate soil in unity 3d. Like in some digging simulators.
    Please help me out
     
  2. Redz0ne

    Redz0ne

    Joined:
    Oct 19, 2010
    Posts:
    332
    i'm no expert but i think the closest you could come would be to put in thousands of small rigidbodies that you could use with a sort of shovel kinda item.

    though, past that, i'm wondering if there's something more that could be done to make a more believable simulation so here's hoping that someone more experienced than I will pipe up.
     
  3. Kashif Amin

    Kashif Amin

    Joined:
    Oct 28, 2010
    Posts:
    30
    dear, u r right. but thousands of small rigidbodies will be a nightmere for graphics card. m i right ??
     
  4. sccrstud92

    sccrstud92

    Joined:
    Jan 20, 2011
    Posts:
    145
    You could play around with some sort of particle effect, and have the particles use colliders. Depending on the effect you are looking for, that could work.
     
  5. MitchStan

    MitchStan

    Joined:
    Feb 26, 2007
    Posts:
    568
    Somewhere on the forum someone posted a mesh deformation script. That might be helpful to look at - deform the mesh as digging occurs.