17 responses

  1. Je
    21/08/2013

    hey well done, works great!

    Reply

  2. ac
    07/10/2013

    that demo looks spectacular and I’m in awe of your programming skills

    what physics and material settings do you use to keep your stacked objects stable?

    whenever I try stacked objects they seem to jiggle and occasionally vibrate off of each other

    Reply

    • mgear
      07/10/2013

      Do you mean before breaking the objects?
      (solver iteration is 20 on this one, default is 6, but actually that seems to work also..)

      those boxes on the background are instantiated on Start(), with 0.03 y-offset..

      Reply

      • ac
        07/10/2013

        would you mind sharing what the other physics settings are? Also what are the settings for the material the blocks are made out of?

        BTW has this mesh exploder code been added to the asset store? Just the demo there is superior to the other mesh exploders available.

        Reply

      • mgear
        07/10/2013

        Everything is on default settings:

        Rigidbody settings are also on defaults:
        Mass: 1, Drag: 0, Angular: 0.05, [x] Use gravity, [ ] is kinematic, Interpolate: None, Collision: Discrete.

        Using default boxes, box collider (no physics material assigned)

        Project physics settings are also defaults:
        Bounce: 2, Sleep vel: 0.15, Sleep ang. 0.14, Max ang:7, Min penetr.: 0.01, Solver: 6 (was 20 but both work)

        (If you want to post your problem scene or object or settings, i can test it)

        *not yet in assetstore, but i’ll try post it there eventually, still it wont work well with complicated mesh shapes..

        Reply

  3. ac
    13/10/2013

    In looking over the unity answers and some googlefu it looks like its a Unity issue with objects stacked more than around 12 high.

    You can probably reproduce the problem if you make your towers 20 blocks high.

    Reply

    • mgear
      13/10/2013

      Yes, tested it: with 20 blocks height,
      it starts to jump/fall down, even if solver iterations are at 100..

      Reply

  4. mgear
    11/02/2014

    dynamic fracture system that can be readily used with Unity cubes only (free lite)
    https://www.assetstore.unity3d.com/#!/content/7193?aid=1101lGti

    Reply

  5. mgear
    19/03/2014
  6. mgear
    28/04/2014
  7. mgear
    30/05/2014
  8. mgear
    27/06/2014

    Unity Debris System (should have free version, didnt find the download link though..)
    http://forum.unity3d.com/threads/free-uds-destruction-in-unity.220905/

    Reply

  9. mgear
    14/10/2014

    Breaking Glass – Unity C# Tutorial (with premade broken glass model)


    Reply

  10. mgear
    02/11/2014

    this would be nice: voronoi shattering
    http://jaketastic.com/blog/voronoi-shattering-complete/

    Reply

  11. mgear
    06/03/2016
  12. mgear
    14/06/2019

    open-source script to destroy objects realistically in Unity3D
    https://github.com/williambl/unity-destruction

    Reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Back to top
mobile desktop