Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Deformation of solid body in Unity3D

Discussion in 'Physics' started by goodspeed13, Apr 21, 2015.

  1. goodspeed13

    goodspeed13

    Joined:
    Apr 21, 2015
    Posts:
    4
    Hi all,

    I am a begginer in Unity and I try to visualise a solid body deformation during collision.
    I've already read many resources on the internet and did't find something simple for that, cause I am a begginer.

    Could you please tell me some resources to read or tutorials that will help me to do that? Maybe there is some ready physics module in Unity for that.

    I found some articles by myself but they are very hard to understand and I don't know how to apply it to Unity.
    http://matthias-mueller-fischer.ch/publications/posBasedDyn.pdf
    http://www.euclideanspace.com/physics/dynamics/collision/index.htm

    Result could be like that:

    Снимок_экрана_041915_011049_PM.jpg Снимок_экрана_041915_011034_PM.jpg Снимок_экрана_041915_010848_PM.jpg

    Thanks in advance.
     
    Last edited: Apr 21, 2015
  2. enishii

    enishii

    Joined:
    May 9, 2014
    Posts:
    11
    There is a way to do that but its not an easy one, you need to create triangle on the collision points and move verts to make the shape. Maybe with voronoid and delaunay?http://en.wikipedia.org/wiki/Delaunay_triangulation

    But if you are a beginner try other things
     
  3. goodspeed13

    goodspeed13

    Joined:
    Apr 21, 2015
    Posts:
    4
    Yes, it's quiet hard I think. Do you know, maybe there is some out-of-the-box solutions in Unity for that?
     
  4. enishii

    enishii

    Joined:
    May 9, 2014
    Posts:
    11
  5. goodspeed13

    goodspeed13

    Joined:
    Apr 21, 2015
    Posts:
    4
    Could you please explain what mean swap on collisions? :)
     
  6. enishii

    enishii

    Joined:
    May 9, 2014
    Posts:
    11
    you have 2 versions of the same object, one been the unchanged and the other the object with deformation. Thats true even for explosions, and other fancy effects.
    For example i have a barrell that explodes if you shoot on it, i change the barrell with a prefact of one barrell broken in several pieces. Then i add a explosion force in the center + a particle emitter .
     
  7. goodspeed13

    goodspeed13

    Joined:
    Apr 21, 2015
    Posts:
    4
    Oh, I get it :) But it's kind of a cheating for my task :)