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. Dismiss Notice

Creating liquid in a bottle

Discussion in 'Editor & General Support' started by scope51791, Jun 15, 2013.

  1. scope51791

    scope51791

    Joined:
    Apr 5, 2013
    Posts:
    3
    I have a question and I don't know if this is the right forum to post it in. Is it possible to put liquid in a see through bottle and have the liquid move depending on how the bottle is moved? I'd assume if it is possible it would probably involve particles.
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    8,988
    Will that be 2D or 3D?
     
  3. scope51791

    scope51791

    Joined:
    Apr 5, 2013
    Posts:
    3
    3D. It doesn't have to be anything complicated and realistic. Like when you tilt a bottle the liquid evens out becoming parallel with the floor like this image:

    $stock-photo-3948282-blue-tilted-bottle.jpg

    I ask because I was just playing The Last Of Us and there was a scene with a bottle and the liquid moved around and I was wondering if that is possible in Unity.
     
  4. djkpA

    djkpA

    Joined:
    Mar 28, 2016
    Posts:
    14
    Was this achieved? I am also in the same requirement. Could some one lease share how to achieve this in unity3d. Thanks
     
  5. jldevoy

    jldevoy

    Joined:
    May 2, 2014
    Posts:
    33
    I've seen that explained somewhere, it was done with 2 hinged bones, so one could swing as the bottle was tilted; the top of the liquid pivoted to match the normal of the swinging bone, something like that anyway, it was just a screenshot.